cz.cuni.versatile.api.relops
Interface One2OneMapping

All Superinterfaces:
PropertyMapping
All Known Implementing Classes:
IdentityMapping

public interface One2OneMapping
extends PropertyMapping

An unary mapping (P1) -> (P2) to transform values of one property to values of another property. Can be used for canonicalization or/and to generate taxonomies (hierarchical classifications) out of the raw unchecked meta data values.

Author:
Jaroslav Gergic

Method Summary
 Property getDomain()
          Returns a domain of this mapping.
 Property getRange()
          Returns a range of this mapping.
 java.lang.Object mapValue(java.lang.Object dom)
          Executes the actual transformation - a mapping.
 
Methods inherited from interface cz.cuni.versatile.api.relops.PropertyMapping
getDomainSet, getRangeSet, getReverse, providesReverse
 

Method Detail

getDomain

public Property getDomain()
Returns a domain of this mapping.

Returns:
a domain property

getRange

public Property getRange()
Returns a range of this mapping.

Returns:
a range property

mapValue

public java.lang.Object mapValue(java.lang.Object dom)
Executes the actual transformation - a mapping.

Parameters:
dom - a domain property value
Returns:
a range property value