ma.glasnost.orika.property
Interface PropertyResolverStrategy

All Known Implementing Classes:
IntrospectorPropertyResolver, PropertyResolver, RegexPropertyResolver

public interface PropertyResolverStrategy

PropertyResolverStrategy specifies a contract for resolution of mappable properties for a java type.

Author:
matt.deboer@gmail.com

Method Summary
 NestedProperty getNestedProperty(Type type, String propertyExpression)
          Deprecated. use getProperty(java.lang.reflect.Type, String) instead
 Map<String,Property> getProperties(Type type)
          Collects and returns the (mappable) properties for the given type.
 Property getProperty(Property owner, String dynamicPropertyExpression)
          Resolves a property for the specified type; nested and dynamically defined properties should be handled automatically.
 Property getProperty(Type type, String dynamicPropertyExpression)
          Resolves a property for the specified type; nested and dynamically defined properties should be handled automatically.
 

Method Detail

getProperties

Map<String,Property> getProperties(Type type)
Collects and returns the (mappable) properties for the given type. Such properties are not required to have both getter and setter, as in some cases, they will participate in one-way mappings.

Parameters:
type - the type for which to resolve properties
Returns:
a Map keyed by property names, with corresponding Property instances as values

getNestedProperty

@Deprecated
NestedProperty getNestedProperty(Type type,
                                            String propertyExpression)
Deprecated. use getProperty(java.lang.reflect.Type, String) instead

Resolves a nested property for the provided type, based on the specified property expression (a sequence property names qualified by '.').

Parameters:
type -
propertyExpression -
Returns:
the NestedProperty instance defined by the provided expression

getProperty

Property getProperty(Type type,
                     String dynamicPropertyExpression)
Resolves a property for the specified type; nested and dynamically defined properties should be handled automatically.

Parameters:
type -
dynamicPropertyExpression -
Returns:
the property (of any format)

getProperty

Property getProperty(Property owner,
                     String dynamicPropertyExpression)
Resolves a property for the specified type; nested and dynamically defined properties should be handled automatically.

Parameters:
owner -
dynamicPropertyExpression -
Returns:
the property (of any format)


Copyright © 2013 Glasnost. All Rights Reserved.