| Package | Description |
|---|---|
| ma.glasnost.orika.impl.generator | |
| ma.glasnost.orika.impl.generator.specification |
| Modifier and Type | Class and Description |
|---|---|
class |
MapEntryRef |
class |
MultiOccurrenceVariableRef
VariableRef represents a reference to a given variable or property; it
contains various helper methods to properly set it's value and interrogate
it's underlying property or type.
|
| Modifier and Type | Field and Description |
|---|---|
VariableRef |
Node.elementRef |
VariableRef |
Node.nullCheckFlag |
VariableRef |
Node.shouldAddToCollectorFlag |
| Modifier and Type | Method and Description |
|---|---|
VariableRef[] |
SourceCodeContext.applyFilters(VariableRef sourceProperty,
VariableRef destinationProperty,
StringBuilder out,
StringBuilder closing) |
VariableRef |
VariableRef.elementRef(String name) |
static VariableRef |
SourceCodeContext.entrySetRef(VariableRef s)
Creates a VariableRef representing a Set
|
VariableRef |
VariableRef.getOwner() |
VariableRef |
MultiOccurrenceVariableRef.nextElementRef() |
| Modifier and Type | Method and Description |
|---|---|
List<VariableRef> |
VariableRef.getPath() |
| Modifier and Type | Method and Description |
|---|---|
String |
MultiOccurrenceVariableRef.add(VariableRef value) |
String |
MultiOccurrenceVariableRef.addAll(VariableRef value)
A convenience function for adding all of one multi-occurrence type to another
|
String |
MultiOccurrenceVariableRef.addAllButNoAssign(VariableRef value)
A convenience function which adds all of one multi-occurence type to another variable, but without any assignment
|
VariableRef[] |
SourceCodeContext.applyFilters(VariableRef sourceProperty,
VariableRef destinationProperty,
StringBuilder out,
StringBuilder closing) |
String |
VariableRef.assign(VariableRef value)
Returns java code which assigns the value of the provided PropertyRef to
this PropertyRef
|
String |
VariableRef.assignIfPossible(VariableRef value)
Generates code to perform assignment to this VariableRef, if it is
assignable.
|
String |
SourceCodeContext.assureInstanceExists(VariableRef propertyRef,
VariableRef source)
Append a statement which assures that the variable reference has an
existing instance; if it does not, a new object is generated using
MapperFacade.newObject
|
String |
SourceCodeContext.callMapper(VariableRef source,
Type<?> destination) |
String |
SourceCodeContext.callMapper(VariableRef source,
VariableRef destination) |
String |
VariableRef.cast(VariableRef ref) |
protected static String |
VariableRef.cast(VariableRef value,
Type<?> type)
Returns Java code which provides a cast of the specified value to the
type of this property ref
|
String |
SourceCodeContext.compareFields(FieldMap fieldMap,
VariableRef sourceProperty,
VariableRef destinationProperty,
Type<?> destinationType,
StringBuilder logDetails)
Generates source code for an "equality" comparison of two variables,
based on the FieldMap passed
|
String |
VariableRef.declare(VariableRef initialValueRef)
Returns Java code which declares this variable, initialized with the
provided value.
|
static VariableRef |
SourceCodeContext.entrySetRef(VariableRef s)
Creates a VariableRef representing a Set
|
static MultiOccurrenceVariableRef |
MultiOccurrenceVariableRef.from(VariableRef r)
up-converts the specified standard VariableRef into a
MultiOccurrenceVariableRef
|
String |
Specification.generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code)
Generates code for a boolean equality test between the two variable types,
where are potentially unrelated.
|
String |
Specification.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code)
Generates code to map the provided field map
|
String |
SourceCodeContext.mapFields(FieldMap fieldMap,
VariableRef source,
VariableRef destination)
Generate the code necessary to process the provided FieldMap.
|
String |
SourceCodeContext.newObject(VariableRef source,
Type<?> destinationType) |
String |
SourceCodeContext.newObjectFromMapper(VariableRef source,
Type<?> destinationType)
Generates a code snippet to generate a new instance of the destination
type from a mapper
|
void |
VariableRef.setOwner(VariableRef owner) |
String |
SourceCodeContext.usedMapperFacadeNewObjectCall(VariableRef source,
VariableRef destination) |
String |
SourceCodeContext.usedType(VariableRef r)
Generate usedType array index code for the provided variable
|
| Constructor and Description |
|---|
VariableRef(Property property,
VariableRef anchor) |
Copyright © 2017 Glasnost. All Rights Reserved.