| Package | Description |
|---|---|
| ma.glasnost.orika.constructor | |
| ma.glasnost.orika.impl | |
| ma.glasnost.orika.impl.generator | |
| ma.glasnost.orika.impl.generator.specification | |
| ma.glasnost.orika.metadata |
| Modifier and Type | Method and Description |
|---|---|
List<FieldMap> |
ConstructorResolverStrategy.ConstructorMapping.getMappedFields() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Specifications.Specification.apply(FieldMap fieldMap) |
| Modifier and Type | Field and Description |
|---|---|
FieldMap |
Node.value |
| Modifier and Type | Method and Description |
|---|---|
FieldMap |
Node.getMap() |
| Modifier and Type | Method and Description |
|---|---|
Set<FieldMap> |
SourceCodeContext.getAssociatedMappings(Collection<FieldMap> fieldMaps,
FieldMap map)
Finds all field maps out of the provided set which are associated with
the map passed in ( including that map itself); by "associated", we mean
any mappings which are connected to the original FieldMap by having a
matching source or destination, including transitive associations.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
Node.NodeList.addFieldMap(FieldMap map,
boolean useSource) |
boolean |
SourceCodeContext.aggregateSpecsApply(FieldMap fieldMap)
Tests whether any aggregate specifications apply for the specified
FieldMap, and if so, adds it to the list of FieldMaps for that spec,
returning true.
|
boolean |
BaseSpecification.appliesTo(FieldMap fieldMap)
Tests whether this Specification applies to the specified MappedTypePair
|
String |
SourceCodeContext.assureContainerInstanceExists(FieldMap fieldMap)
Append a statement with assures that the container variable reference
has an existing instance; if it does not, a new object is generated
using MapperFacade.newObject
|
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
|
void |
SourceCodeContext.debugField(FieldMap fieldMap,
String msg) |
String |
SourceCodeContext.fieldTag(FieldMap fieldMap) |
static Node |
Node.findFieldMap(FieldMap map,
Node.NodeList nodes,
boolean useSource) |
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
|
Set<FieldMap> |
SourceCodeContext.getAssociatedMappings(Collection<FieldMap> fieldMaps,
FieldMap map)
Finds all field maps out of the provided set which are associated with
the map passed in ( including that map itself); by "associated", we mean
any mappings which are connected to the original FieldMap by having a
matching source or destination, including transitive associations.
|
String |
SourceCodeContext.mapFields(FieldMap fieldMap,
VariableRef source,
VariableRef destination)
Generate the code necessary to process the provided FieldMap.
|
| Modifier and Type | Method and Description |
|---|---|
String |
AggregateSpecification.generateMappingCode(List<FieldMap> fieldMappings,
SourceCodeContext code) |
Set<FieldMap> |
SourceCodeContext.getAssociatedMappings(Collection<FieldMap> fieldMaps,
FieldMap map)
Finds all field maps out of the provided set which are associated with
the map passed in ( including that map itself); by "associated", we mean
any mappings which are connected to the original FieldMap by having a
matching source or destination, including transitive associations.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ArrayOrCollectionToMap.appliesTo(FieldMap fieldMap) |
boolean |
MapToArray.appliesTo(FieldMap fieldMap) |
boolean |
AnyTypeToString.appliesTo(FieldMap fieldMap) |
boolean |
MapToCollection.appliesTo(FieldMap fieldMap) |
boolean |
ObjectToMultiOccurrenceElement.appliesTo(FieldMap fieldMap) |
boolean |
MapToMap.appliesTo(FieldMap fieldMap) |
boolean |
StringToStringConvertible.appliesTo(FieldMap fieldMap) |
boolean |
MultiOccurrenceToMultiOccurrence.appliesTo(FieldMap fieldMap) |
boolean |
ConvertArrayOrCollectionToCollection.appliesTo(FieldMap fieldMap) |
boolean |
MultiOccurrenceElementToObject.appliesTo(FieldMap fieldMap) |
boolean |
PrimitiveAndObject.appliesTo(FieldMap fieldMap) |
boolean |
Convert.appliesTo(FieldMap fieldMap) |
boolean |
ArrayOrCollectionToCollection.appliesTo(FieldMap fieldMap) |
boolean |
CopyByReference.appliesTo(FieldMap fieldMap) |
boolean |
ObjectToObject.appliesTo(FieldMap fieldMap) |
boolean |
ArrayOrCollectionToArray.appliesTo(FieldMap fieldMap) |
abstract boolean |
AbstractSpecification.appliesTo(FieldMap fieldMap) |
boolean |
EnumToEnum.appliesTo(FieldMap fieldMap) |
boolean |
ConvertArrayOrCollectionToArray.appliesTo(FieldMap fieldMap) |
boolean |
StringToEnum.appliesTo(FieldMap fieldMap) |
boolean |
UnmappableEnum.appliesTo(FieldMap fieldMap) |
boolean |
ApplyRegisteredMapper.appliesTo(FieldMap fieldMap) |
String |
AnyTypeToString.generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
StringToStringConvertible.generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
PrimitiveAndObject.generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
Convert.generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
CopyByReference.generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
AbstractSpecification.generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
EnumToEnum.generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
StringToEnum.generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
ArrayOrCollectionToMap.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
MapToArray.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
AnyTypeToString.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
MapToCollection.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
ObjectToMultiOccurrenceElement.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
MapToMap.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
StringToStringConvertible.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
ConvertArrayOrCollectionToCollection.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
MultiOccurrenceElementToObject.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
PrimitiveAndObject.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
Convert.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
ArrayOrCollectionToCollection.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
CopyByReference.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
ObjectToObject.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
ArrayOrCollectionToArray.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
abstract String |
AbstractSpecification.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
EnumToEnum.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
ConvertArrayOrCollectionToArray.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
StringToEnum.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
UnmappableEnum.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
String |
ApplyRegisteredMapper.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code) |
static boolean |
AbstractSpecification.shouldMapNulls(FieldMap fieldMap,
SourceCodeContext context)
Tests whether this fieldMap should map nulls;
|
| Modifier and Type | Method and Description |
|---|---|
String |
MultiOccurrenceToMultiOccurrence.generateMappingCode(List<FieldMap> fieldMappings,
SourceCodeContext code)
Generates the code to support a (potentially parallel) mapping from one
or more multi-occurrence fields in the source type to one or more
multi-occurrence fields in the destination type.
|
| Modifier and Type | Method and Description |
|---|---|
FieldMap |
FieldMap.copy() |
FieldMap |
FieldMap.flip() |
static FieldMap |
FieldMapBuilder.mapKeys(Type<?> aType,
Type<?> bType)
Creates a FieldMap for the Map keys from A to B
|
static FieldMap |
FieldMapBuilder.mapValues(Type<?> aType,
Type<?> bType)
Creates a FieldMap for the Map values from A to B
|
| Modifier and Type | Method and Description |
|---|---|
Set<FieldMap> |
ClassMap.getFieldsMapping() |
protected Set<FieldMap> |
ClassMapBuilder.getMappedFields() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ClassMapBuilder.addFieldMap(FieldMap fieldMap) |
void |
ClassMap.addFieldMap(FieldMap fieldMap) |
| Modifier and Type | Method and Description |
|---|---|
ClassMap<A,B> |
ClassMap.copy(Set<FieldMap> fieldsMapping) |
| Constructor and Description |
|---|
ClassMap(Type<A> aType,
Type<B> bType,
Set<FieldMap> fieldsMapping,
Mapper<A,B> customizedMapper,
Set<MapperKey> usedMappers,
String[] constructorA,
String[] constructorB,
Boolean sourcesMappedOnNull,
Boolean destinationsMappedOnNull,
Boolean favorsExtension)
Constructs a new ClassMap
|
Copyright © 2019 Glasnost. All rights reserved.