ma.glasnost.orika.metadata
Class NestedProperty

java.lang.Object
  extended by ma.glasnost.orika.metadata.Property
      extended by ma.glasnost.orika.metadata.NestedProperty

public class NestedProperty
extends Property

NestedProperty represents a property which is accessed by chaining calls to multiple properties.


Constructor Summary
NestedProperty(String expression, Property property, Property[] path)
          Creates a new NestedProperty
 
Method Summary
 NestedProperty copy()
           
 boolean equals(Object other)
           
 Property[] getPath()
           
 int hashCode()
           
 boolean hasPath()
           
 boolean isArrayElement()
           
 boolean isListElement()
           
 boolean isMapKey()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestedProperty

public NestedProperty(String expression,
                      Property property,
                      Property[] path)
Creates a new NestedProperty

Parameters:
expression -
property -
path -
Method Detail

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.