cz.cuni.versatile.api.relops
Interface One2ManyMapping

All Superinterfaces:
PropertyMapping

public interface One2ManyMapping
extends PropertyMapping

An information extraction mapping Px -> (P1, P2, P3, ..., Pn). There are quite a few instances of meta-data properties which contain composite literal values or combine multiple semantical entities into a single named property and in turn require further parsing to extract the individual sub-properties. For example:

The motivation for introducing this type of mapping is to be able to parse the source property value and extract all the output data values one pass to improve performance when using this within a DeliveryContext. Semantically, this type of mapping can be replaced by a set of unary mappings.

Author:
Jaroslav Gergic

Method Summary
 Property getDomain()
          Returns a domain of this mapping.
 Property[] getRange()
          Returns an ordered list of properties which form 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 an ordered list of properties which form a range of this mapping.

Returns:
an ordered list of range properties

mapValue

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

Parameters:
dom - a domain property value
Returns:
an ordered list of range properties values (the order must corresponds to the getRange() method)