Z - the source typeX - the destination typeY - the attribute typepublic abstract class AbstractMapping<Z,X,Y> extends Object implements Mapping<Z,X,Y>
| Constructor and Description |
|---|
AbstractMapping(AbstractParentMapping<?,Z> parent,
AttributeImpl<? super Z,X> attribute,
Class<X> javaType,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
X |
get(Object instance)
Returns the mapping value of instance.
|
AttributeImpl<? super Z,X> |
getAttribute()
Returns the attribute of the mapping.
|
Member |
getJavaMember()
Returns the java member of the mapping.
|
Class<X> |
getJavaType()
Returns the javaType of the mapping.
|
AbstractLocator |
getLocator()
Returns the locator of the mapping.
|
String |
getName()
Returns the name of the AbstractMapping.
|
AbstractParentMapping<?,Z> |
getParent()
Returns the parent of the mapping.
|
String |
getPath()
Returns the path of the mapping.
|
RootMapping<?> |
getRoot()
Returns the root of the mapping.
|
int |
hashCode() |
boolean |
isCollection()
Returns if the mapping is a collection mapping.
|
void |
set(Object instance,
Object value)
Sets the mapping value of instance.
|
String |
toString() |
public AbstractMapping(AbstractParentMapping<?,Z> parent, AttributeImpl<? super Z,X> attribute, Class<X> javaType, String name)
parent - the parent mappingattribute - the attributejavaType - the java typename - the name of the mappingpublic AttributeImpl<? super Z,X> getAttribute()
public Member getJavaMember()
getJavaMember in interface Mapping<Z,X,Y>public Class<X> getJavaType()
getJavaType in interface Mapping<Z,X,Y>public AbstractLocator getLocator()
getLocator in interface Mapping<Z,X,Y>public String getName()
public AbstractParentMapping<?,Z> getParent()
public String getPath()
public RootMapping<?> getRoot()
public boolean isCollection()
isCollection in interface Mapping<Z,X,Y>true if the mapping is a collection mapping, false otherwiseCopyright © 2012-2013 Batoo. All Rights Reserved.