Package org.geotools.xml.schema.impl
Class ElementValueGT
- Object
-
- ElementValueGT
-
- All Implemented Interfaces:
ElementValue
public class ElementValueGT extends Object implements ElementValue
- Author:
- dzwiers
-
-
Constructor Summary
Constructors Constructor Description ElementValueGT(Element element, Object value)
Creates a new ElementValueGT object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Element
getElement()
Returns the type which generated the associated value.Object
getValue()
This returns the realized value of an element which was associated with this type.
-
-
-
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 interfaceElementValue
- Returns:
- Type
- See Also:
ElementValue.getElement()
-
getValue
public 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 interfaceElementValue
- Returns:
- Object (may be null)
- See Also:
ElementValue.getValue()
-
-