deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.datastore.schema.content
Class ConstantContent

java.lang.Object
  extended by org.deegree.io.datastore.schema.content.VirtualContent
      extended by org.deegree.io.datastore.schema.content.ConstantContent
All Implemented Interfaces:
FunctionParam, SimpleContent

public class ConstantContent
extends VirtualContent
implements FunctionParam

Special content class for MappedSimplePropertyTypes that contain constant string values.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
ConstantContent(String constant)
          Initializes a newly created ConstantContent object so that it represents the given String value.
 
Method Summary
 String getValue()
          Returns the constant String that this object contains.
 boolean isSortable()
          Returns false, because it makes no sense to use a constant as a sort criterion.
 
Methods inherited from class org.deegree.io.datastore.schema.content.VirtualContent
isUpdateable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantContent

public ConstantContent(String constant)
Initializes a newly created ConstantContent object so that it represents the given String value.

Parameters:
constant -
Method Detail

isSortable

public boolean isSortable()
Returns false, because it makes no sense to use a constant as a sort criterion.

Specified by:
isSortable in interface SimpleContent
Returns:
false, because it makes no sense to use a constant as a sort criterion.

getValue

public String getValue()
Returns the constant String that this object contains.

Returns:
constant String that this object contains

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org