Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class ContentValue

java.lang.Object
  extended by com.esri.gpt.catalog.schema.Component
      extended by com.esri.gpt.catalog.schema.ContentValue

public class ContentValue
extends Component

Stores a string value associated with a parameter's content.


Constructor Summary
ContentValue()
          Default constructor.
ContentValue(ContentValue objectToDuplicate)
          Construct by duplicating an existing object.
ContentValue(String value)
          Construct with a supplied value.
 
Method Summary
 void clear()
          Clears the value.
 void configure(CfgContext context, Node node, NamedNodeMap attributes)
          Configures the object based upon a node loaded from a schema configuration XML.
 ContentValue duplicate()
          Produces a deep clone of the object.
 void echo(StringBuffer sb)
          Appends property information for the component to a StringBuffer.
 String getValue()
          Gets the associated value.
 void setValue(String value)
          Sets the associated value.
 
Methods inherited from class com.esri.gpt.catalog.schema.Component
getKey, setKey, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentValue

public ContentValue()
Default constructor.


ContentValue

public ContentValue(ContentValue objectToDuplicate)
Construct by duplicating an existing object.

Parameters:
objectToDuplicate - the object to duplicate

ContentValue

public ContentValue(String value)
Construct with a supplied value.

Parameters:
value - the value
Method Detail

getValue

public String getValue()
Gets the associated value.

Returns:
the value

setValue

public void setValue(String value)
Sets the associated value.
The value is trimmed.
Null values are treated a empty strings.

Parameters:
value - the value

clear

public void clear()
Clears the value.


configure

public void configure(CfgContext context,
                      Node node,
                      NamedNodeMap attributes)
Configures the object based upon a node loaded from a schema configuration XML.
The super.configure method should be invoked prior to any sub-class configuration.

Overrides:
configure in class Component
Parameters:
context - the configuration context
node - the configuration node
attributes - the attributes of the configuration node

duplicate

public ContentValue duplicate()
Produces a deep clone of the object.
The duplication constructor is invoked.
return new ContentValue(this);

Specified by:
duplicate in class Component

echo

public void echo(StringBuffer sb)
Appends property information for the component to a StringBuffer.
The method is intended to support "FINEST" logging.
super.echo should be invoked prior appending any local information.

Overrides:
echo in class Component
Parameters:
sb - the StringBuffer to use when appending information

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.