org.geotools.xml.schema.impl
Class ElementValueGT

java.lang.Object
  extended byorg.geotools.xml.schema.impl.ElementValueGT
All Implemented Interfaces:
ElementValue

public class ElementValueGT
extends java.lang.Object
implements ElementValue

DOCUMENT ME!

Author:
dzwiers

Constructor Summary
ElementValueGT(Element element, java.lang.Object value)
          Creates a new ElementValueGT object.
 
Method Summary
 Element getElement()
           Returns the type which generated the associated value.
 java.lang.Object getValue()
           This returns the realized value of an element which was associated with this type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementValueGT

public ElementValueGT(Element element,
                      java.lang.Object value)
Creates a new ElementValueGT object.

Parameters:
element - DOCUMENT ME!
value - DOCUMENT ME!
Method Detail

getElement

public Element getElement()
Description copied from interface: ElementValue

Returns the type which generated the associated value. The type is important because it allows easy access to the xml element inheritance tree, allowing the user to test whether it is a valid data entry.

Specified by:
getElement in interface ElementValue
Returns:
Type
See Also:
ElementValue.getElement()

getValue

public java.lang.Object getValue()
Description copied from interface: ElementValue

This returns the realized value of an element which was associated with this type. We recommend that this value be realized prior to the first request for the value (use this object to cache the result). If you do chose to implement this method lazily, consider caching the result as it may be called more than once, expecting the same result both times.

Specified by:
getValue in interface ElementValue
Returns:
Object (may be null)
See Also:
ElementValue.getValue()


Copyright © GeoTools. All Rights Reserved.