deegree 2.5 (2011/06/29 09:44 build-8-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(java.lang.String constant)
          Initializes a newly created ConstantContent object so that it represents the given String value.
 
Method Summary
 java.lang.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(java.lang.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 java.lang.String getValue()
Returns the constant String that this object contains.

Returns:
constant String that this object contains

deegree 2.5 (2011/06/29 09:44 build-8-official)

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