ma.glasnost.orika.metadata
Class NestedProperty
java.lang.Object
ma.glasnost.orika.metadata.Property
ma.glasnost.orika.metadata.NestedProperty
public class NestedProperty
- extends Property
NestedProperty represents a property which is accessed by
chaining calls to multiple properties.
| Methods inherited from class ma.glasnost.orika.metadata.Property |
copy, getContainer, getElement, getElementType, getExpression, getGetter, getGetterName, getName, getRawType, getSetter, getSetterName, getType, isArray, isAssignableFrom, isCollection, isEnum, isList, isMap, isMultiOccurrence, isPrimitive, isSet, toString |
NestedProperty
public NestedProperty(String expression,
Property property,
Property[] path)
- Creates a new NestedProperty
- Parameters:
expression - property - path -
copy
public NestedProperty copy()
- Overrides:
copy in class Property
- Returns:
- a copy of this property instance
getPath
public Property[] getPath()
- Overrides:
getPath in class Property
- Returns:
- the path to this property; properties in the path are ordered
from parent to child
hasPath
public boolean hasPath()
- Overrides:
hasPath in class Property
- Returns:
- true if this property has a path
equals
public boolean equals(Object other)
- Overrides:
equals in class Property
hashCode
public int hashCode()
- Overrides:
hashCode in class Property
isListElement
public boolean isListElement()
- Overrides:
isListElement in class Property
- Returns:
- true if this property represents a list element
isArrayElement
public boolean isArrayElement()
- Overrides:
isArrayElement in class Property
- Returns:
- true if this property represents an array element
isMapKey
public boolean isMapKey()
- Overrides:
isMapKey in class Property
- Returns:
- true if this property represents a Map Key
Copyright © 2013 Glasnost. All Rights Reserved.