|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.versatile.core.IdentityMapping
A generic implementation of an identity mapping.
This is essentially used for property renaming to ensure compatibility between multiple property namespaces. For example when using multiple revisions of UAProf or other vocabulary, where each revision uses a different XML namespace as a prefix for their attributes, even though some of the attributes definitions remain unchanged.
Constructor Summary | |
IdentityMapping(Property domain,
Property range)
Constructs a mapping instance for a given pair of properties. |
Method Summary | |
Property |
getDomain()
Returns a domain of this mapping. |
java.util.Set |
getDomainSet()
Domain: a set of all source properties required to calculate a value of this mapping. |
Property |
getRange()
Returns a range of this mapping. |
java.util.Set |
getRangeSet()
Range: Returns a set of all target properties calculated by this mapping. |
PropertyMapping |
getReverse()
Returns an implementation of the corresponding reverse mapping, if implemented. |
java.lang.Object |
mapValue(java.lang.Object dom)
Implements an identity function, i.e., returns its input as the output. |
boolean |
providesReverse()
Check whether this property mapping is aware of its corresponding reverse transformation map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IdentityMapping(Property domain, Property range)
Method Detail |
public Property getDomain()
One2OneMapping
getDomain
in interface One2OneMapping
One2OneMapping.getDomain()
public Property getRange()
One2OneMapping
getRange
in interface One2OneMapping
One2OneMapping.getRange()
public java.lang.Object mapValue(java.lang.Object dom)
mapValue
in interface One2OneMapping
dom
- a domain property value
One2OneMapping.mapValue(java.lang.Object)
public boolean providesReverse()
PropertyMapping
providesReverse
in interface PropertyMapping
true
if an invocation to getReverse()
will return a reverse mapping.PropertyMapping.providesReverse()
public java.util.Set getDomainSet()
PropertyMapping
getDomainSet
in interface PropertyMapping
PropertyMapping.getDomainSet()
public java.util.Set getRangeSet()
PropertyMapping
getRangeSet
in interface PropertyMapping
PropertyMapping.getRangeSet()
public PropertyMapping getReverse()
PropertyMapping
null
,
it does not mean a reverse mapping does not exist: there can still be one or more independent implementations.
getReverse
in interface PropertyMapping
PropertyMapping.getReverse()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |