| Package | Description |
|---|---|
| ma.glasnost.orika | |
| ma.glasnost.orika.constructor | |
| ma.glasnost.orika.impl | |
| ma.glasnost.orika.impl.generator | |
| ma.glasnost.orika.metadata | |
| ma.glasnost.orika.property |
| Modifier and Type | Method and Description |
|---|---|
Property |
MappingException.getDestinationProperty() |
Property |
MappingException.getSourceProperty() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Filter.appliesTo(Property source,
Property destination)
This method will be called at build time to determine if this filter
should be applied to the mapping of the specified properties
|
boolean |
CustomFilter.appliesTo(Property source,
Property destination) |
void |
MappingException.setDestinationProperty(Property destinationProperty) |
void |
MappingException.setSourceProperty(Property sourceProperty) |
| Modifier and Type | Method and Description |
|---|---|
Set<Property> |
ConstructorParameterResolver.getPossibleConstructorParams(Type type,
String name)
Resolves one or more constructor parameters found in the constructor(s)
of the specified type which have the specified name.
|
Map<String,Set<Property>> |
ConstructorParameterResolver.getProperties(Type type)
Resolves constructor arguments as properties for the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AggregateFilter.appliesTo(Property source,
Property destination) |
| Modifier and Type | Field and Description |
|---|---|
Property |
Node.property |
protected Property |
MapEntryRef.EntryPart.prototype |
| Modifier and Type | Method and Description |
|---|---|
Property |
VariableRef.property() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
VariableRef.getGetter(Property property,
String variableExpression) |
protected static String |
VariableRef.getSetter(Property property,
String variableExpression)
Returns a fully type-cast setter for the property which has no reliance
on java generics.
|
| Constructor and Description |
|---|
MultiOccurrenceVariableRef(Property property,
String name) |
VariableRef(Property property,
String name) |
VariableRef(Property property,
VariableRef anchor) |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayElementProperty
ListElementProperty is a special Property instance used to represent a value
which associated with a particular index in a list.
|
class |
ConstructorParameter
ConstructorParameter proxies a constructor parameter of a given name and type
which appears in one or more constructors as a Property
|
class |
ListElementProperty
ListElementProperty is a special Property instance used to represent a value
which associated with a particular index in a list.
|
class |
MapKeyProperty
MapKeyProperty is a special Property instance used to represent a value
which associated with a key within a Map.
|
class |
NestedElementProperty
NestedElementProperty represents a property which belongs to the type of a nested list/array/map element
within another type.
|
class |
NestedProperty
NestedProperty represents a property which is accessed by
chaining calls to multiple properties.
|
| Modifier and Type | Method and Description |
|---|---|
Property |
Property.Builder.build()
Builds the property
|
Property |
Property.Builder.build(PropertyResolver propertyResolver)
Builds the property, using the specified proeprtyResolver to validate
the property settings
|
Property |
Property.copy() |
Property |
Property.copy(Type<?> newType) |
Property |
Property.getContainer() |
Property |
FieldMap.getDestination() |
Property |
NestedElementProperty.getElement() |
Property |
Property.getElement() |
Property |
FieldMap.getInverse() |
Property[] |
Property.getPath() |
Property[] |
NestedProperty.getPath() |
Property |
NestedElementProperty.getRootContainer() |
Property |
FieldMap.getSource() |
protected Property |
ClassMapBuilderForMaps.resolveCustomProperty(String expr,
Type<?> propertyType)
Resolves a custom property for this builder using the provided expression
|
protected Property |
ClassMapBuilderForArrays.resolveCustomProperty(String expr,
Type<?> propertyType) |
protected Property |
ClassMapBuilderForLists.resolveCustomProperty(String expr,
Type<?> propertyType) |
protected Property |
ClassMapBuilderForMaps.resolveProperty(Type rawType,
String expr)
Resolves a property for the particular type, based on the provided property expression
|
protected Property |
ClassMapBuilder.resolveProperty(Type type,
String expr)
Resolves a property for the particular type, based on the provided
property expression
|
protected Property |
CaseInsensitiveClassMapBuilder.resolveProperty(Type type,
String expr)
Resolves a property for the particular type, based on the provided property expression
|
protected Property |
ClassMapBuilder.resolvePropertyForA(String expr)
Resolves a property expression for this builder's 'A' type
|
protected Property |
ClassMapBuilder.resolvePropertyForB(String expr)
Resolves a property expression for this builder's 'B' type
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Property> |
ClassMapBuilder.getPropertyExpressions(Type<?> type)
Gets all of the property expressions for a given type, including all
nested properties.
|
| Modifier and Type | Method and Description |
|---|---|
Property.Builder |
Property.Builder.container(Property container) |
ClassMapBuilder<A,B> |
ClassMapBuilder.field(Property fieldA,
Property fieldB) |
ClassMapBuilder<A,B> |
ClassMapBuilder.field(Property fieldA,
String fieldNameB) |
ClassMapBuilder<A,B> |
ClassMapBuilder.field(String fieldNameA,
Property fieldB) |
FieldMapBuilder<A,B> |
ClassMapBuilder.fieldMap(Property fieldA,
Property fieldB,
boolean byDefault) |
FieldMapBuilder<A,B> |
ClassMapBuilder.fieldMap(Property fieldA,
String fieldNameB,
boolean byDefault) |
FieldMapBuilder<A,B> |
ClassMapBuilder.fieldMap(String fieldNameA,
Property fieldB,
boolean byDefault) |
boolean |
Property.isAssignableFrom(Property p) |
Property.Builder |
Property.Builder.merge(Property property)
Merges the attributes of the specified property into this one
|
Property.Builder |
Property.Builder.path(Property[] path) |
| Constructor and Description |
|---|
ArrayElementProperty(int index,
Type<?> propertyType,
Property container) |
FieldMap(Property a,
Property b,
Property aInverse,
Property bInverse,
MappingDirection mappingDirection,
boolean excluded,
String converterId,
boolean byDefault,
Boolean sourceMappedOnNull,
Boolean destinationMappedOnNull) |
FieldMatchScore(Property propertyA,
Property propertyB,
ScoringClassMapBuilder.PropertyMatchingWeights matchingWeights)
Constructs a new FieldMatchScore based on the provided pair of properties, with scoring modified by
the provided PropertyMatchingWeights
|
ListElementProperty(int index,
Type<?> propertyType,
Property owner) |
MapKeyProperty(String key,
Type<?> keyType,
Type<?> valueType,
Property owner) |
NestedElementProperty(Property owningProperty,
Property elementProperty,
PropertyResolverStrategy resolver) |
NestedProperty(String expression,
Property property,
Property[] path)
Creates a new NestedProperty
|
NestedProperty(String expression,
Property property,
Property[] path)
Creates a new NestedProperty
|
Property(String expression,
String name,
String getter,
String setter,
Type<?> type,
Type<?> elementType,
Property container)
Constructs a new Property instance
|
| Modifier and Type | Method and Description |
|---|---|
Property |
PropertyResolver.getElementProperty(Type type,
String p) |
Property |
PropertyResolver.getElementProperty(Type type,
String p,
Property owner) |
Property |
PropertyResolver.getIndividualElementProperty(Type type,
String p,
Property owner) |
Property |
PropertyResolver.getProperty(Property owner,
String expr) |
Property |
PropertyResolverStrategy.getProperty(Property owner,
String dynamicPropertyExpression)
Resolves a property for the specified type; nested and dynamically defined properties
should be handled automatically.
|
Property |
PropertyResolver.getProperty(Type type,
String expr) |
Property |
PropertyResolverStrategy.getProperty(Type type,
String dynamicPropertyExpression)
Resolves a property for the specified type; nested and dynamically defined properties
should be handled automatically.
|
protected Property |
PropertyResolver.getProperty(Type type,
String expr,
boolean isNestedLookup,
Property owner)
Resolves the specified property expression
|
protected Property |
PropertyResolver.processProperty(String propertyName,
Class<?> propertyType,
Method readMethod,
Method writeMethod,
Class<?> owningType,
Type<?> referenceType,
Map<String,Property> properties)
Processes a property, adding it to the map of properties for the owning
type being processed
|
Property |
PropertyResolver.resolveInlineProperty(Type type,
String expr)
Resolves in-line properties, which are defined with the following format:
"name{getterName|setterName|type=typeName}". Setter name can be omitted, as well as type name; if getter name is omitted, then setter name must be preceded by '|', like so: "name{|setterName|type=typeName}", or like "name{|setterName}". |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Property> |
PropertyResolver.getProperties(Type theType) |
Map<String,Property> |
PropertyResolverStrategy.getProperties(Type type)
Collects and returns the (mappable) properties for the given type.
|
| Modifier and Type | Method and Description |
|---|---|
Property |
PropertyResolver.getElementProperty(Type type,
String p,
Property owner) |
Property |
PropertyResolver.getIndividualElementProperty(Type type,
String p,
Property owner) |
protected NestedProperty |
PropertyResolver.getNestedProperty(Type type,
String p,
Property owner) |
Property |
PropertyResolver.getProperty(Property owner,
String expr) |
Property |
PropertyResolverStrategy.getProperty(Property owner,
String dynamicPropertyExpression)
Resolves a property for the specified type; nested and dynamically defined properties
should be handled automatically.
|
protected Property |
PropertyResolver.getProperty(Type type,
String expr,
boolean isNestedLookup,
Property owner)
Resolves the specified property expression
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
IntrospectorPropertyResolver.collectProperties(Class<?> type,
Type<?> referenceType,
Map<String,Property> properties)
Collects all properties for the specified type.
|
protected abstract void |
PropertyResolver.collectProperties(Class<?> type,
Type<?> referenceType,
Map<String,Property> properties)
Collects all properties for the specified type.
|
protected void |
RegexPropertyResolver.collectProperties(Class<?> type,
Type<?> referenceType,
Map<String,Property> properties)
Collects all properties for the specified type.
|
protected void |
PropertyResolver.collectPublicFieldProperties(Type<?> referenceType,
Map<String,Property> properties)
Add public non-static fields as properties
|
protected Property |
PropertyResolver.processProperty(String propertyName,
Class<?> propertyType,
Method readMethod,
Method writeMethod,
Class<?> owningType,
Type<?> referenceType,
Map<String,Property> properties)
Processes a property, adding it to the map of properties for the owning
type being processed
|
Copyright © 2017 Glasnost. All Rights Reserved.