Z - the source typeX - the destination typeY - the attribute typepublic abstract class Mapping<Z,X,Y> extends Object
| Constructor and Description |
|---|
Mapping(ParentMapping<?,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.
|
abstract AttributeImpl<? super Z,X> |
getAttribute()
Returns the attribute of the mapping.
|
Class<X> |
getJavaType()
Returns the javaType of the mapping.
|
String |
getName()
Returns the name of the Mapping.
|
ParentMapping<?,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() |
void |
set(Object instance,
Object value)
Sets the mapping value of instance.
|
String |
toString() |
public Mapping(ParentMapping<?,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 final X get(Object instance)
instance - the instance of which the value to be returnedpublic abstract AttributeImpl<? super Z,X> getAttribute()
public Class<X> getJavaType()
public String getName()
public ParentMapping<?,Z> getParent()
public String getPath()
public RootMapping<?> getRoot()
public final void set(Object instance, Object value)
instance - the instance of which the value to setvalue - the value to setCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.