org.deegree.feature.persistence.sql.rules
Class ConstantMapping<T extends TypedObjectNode>

java.lang.Object
  extended by org.deegree.feature.persistence.sql.rules.Mapping
      extended by org.deegree.feature.persistence.sql.rules.ConstantMapping<T>

public class ConstantMapping<T extends TypedObjectNode>
extends Mapping

Mapping of a particle to a fixed value.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: markus $

Constructor Summary
ConstantMapping(ValueReference path, T value)
          Creates a new ConstantMapping instance.
 
Method Summary
 T getValue()
          Returns the value that the particle is mapped to.
 
Methods inherited from class org.deegree.feature.persistence.sql.rules.Mapping
getJoinedTable, getPath, isVoidable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantMapping

public ConstantMapping(ValueReference path,
                       T value)
Creates a new ConstantMapping instance.

Parameters:
path - relative xpath expression, must not be null
value - the value of the particle, must not be null
Method Detail

getValue

public T getValue()
Returns the value that the particle is mapped to.

Returns:
the value of the particle, never null


Copyright © 2011. All Rights Reserved.