|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFilterOpsComplexTypes.DistanceType
public static class FilterOpsComplexTypes.DistanceType
| Constructor Summary | |
|---|---|
FilterOpsComplexTypes.DistanceType()
|
|
| Method Summary | |
|---|---|
boolean |
cache(Element element,
Map hints)
This method is a directive to the parser whether to keep the data around in memory for post processing. |
boolean |
canEncode(Element element,
Object value,
Map hints)
Subclass must override this method to allow encoding. |
void |
encode(Element element,
Object value,
PrintHandler output,
Map hints)
Subclass should implement this, this implementation provides a good OperationsNotSupportedException. |
Element |
findChildElement(String name)
Convinience method used to search this type's children for the requested element by localName. |
String |
getAnyAttributeNameSpace()
This methos represents the potential 'anyAttribute' declaration's namespace attribute which may occur within a complex type definition. |
Attribute[] |
getAttributes()
The set of attributes required by this complex type declaration. |
int |
getBlock()
Specifies a mask which denotes which substitution mechanisms may be used for this complex type definition. |
ElementGrouping |
getChild()
Returns the child element representing the structure of nested child nodes (if any are allowed). |
Element[] |
getChildElements()
|
int |
getFinal()
Specifies a mask which denotes which substitution mechanisms prohibited for use by child definitions of this complex type. |
String |
getId()
Returns the xml schema id of this complexType if one exists, null otherwise. |
static ComplexType |
getInstance()
|
Class |
getInstanceType()
This will return the intended Java Class for this element type. |
String |
getName()
This returns the XML Schema declaration name of this type (both complex and simple types have names ...) |
URI |
getNamespace()
This is used for validation of an XML document, and represents the targetNamespace of that this type resides in. |
Type |
getParent()
This is used to represent the heirarchy represented within an xml schema document(s). |
Object |
getValue(Element element,
ElementValue[] value,
Attributes attrs,
Map hints)
This method is intended to receive the child elements in the form of ElementValues (@see ElementValue). |
boolean |
isAbstract()
Returns true when the complexType should be considered abstract, as defined by the XML schema of which this complex type definition is a part. |
boolean |
isDerived()
This method is used to publish whether this complexType is at the root of an inheritance tree, or a leaf within an inheritance tree. |
boolean |
isMixed()
Returns true if this complexType allows mixed content (Child elements and a String value). |
String |
toString()
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilterOpsComplexTypes.DistanceType()
| Method Detail |
|---|
public static ComplexType getInstance()
public boolean isMixed()
ComplexType
isMixed in interface ComplexTypeComplexType.isMixed()public Attribute[] getAttributes()
ComplexType
getAttributes in interface ComplexTypeComplexType.getAttributes()public ElementGrouping getChild()
ComplexType
ComplexType.getChild()public Element[] getChildElements()
ComplexType.getChildElements()
public Object getValue(Element element,
ElementValue[] value,
Attributes attrs,
Map hints)
throws SAXException
TypeThis method is intended to receive the child elements in the form of ElementValues (@see ElementValue). Recall that this is a pairing containing a reference to the type and the actual value (do not call .getValue on the types). This should return the real value (interpreted value) for this element based on it's children. Remember, this is a XML is a tree structure, so if you don't include some children, they are gone forever (so be careful when ignoring data).
If the element had #CData (Nested Child Text), this will appear in the first slot, with a null Element.
A SAXNotSupportedException should be thrown when the child's [inherited, default implementation of getValue(ElementValue[],Attributes)] method should be used.
SAXExceptionType.getValue(org.geotools.xml.schema.Element,
org.geotools.xml.schema.ElementValue[],
org.xml.sax.Attributes, java.util.Map)public String getName()
TypeThis returns the XML Schema declaration name of this type (both complex and simple types have names ...)
Type.getName()public Class getInstanceType()
TypeThis will return the intended Java Class for this element type. For generic complex types this will be an object array. SimpleTypes will match as they are parsed, and custom extensions will also return the appropriate class value.
Type.getInstanceType()
public boolean canEncode(Element element,
Object value,
Map hints)
canEncode in interface Typeelement - The element which may be used to represent the Object. This is included to allow for child definitions to include addition information where appropriate.value - An Object which may or may not be encodeable by this type. The value may also be null.
false, subclass override to allow encodingType#encode(Element, Object, Writer, Map)
public void encode(Element element,
Object value,
PrintHandler output,
Map hints)
throws IOException
encode in interface Typeelement - The original element declaration to which we should encode.value - The Object to encode.output - This is where the output should be written to.hints - For providing additional context information to specific schemas.
IOException - When there is an error with the Writer.Type.encode(org.geotools.xml.schema.Element,
java.lang.Object, org.geotools.xml.PrintHandler,
java.util.Map)public Type getParent()
ComplexTypeThis is used to represent the heirarchy represented within an xml schema document(s). This is particularily useful, as the parent will have the first attempt to create a real (non Object[]) value of the element. For more information see getValue.
getParent in interface ComplexTypeComplexType.getParent()public boolean isAbstract()
ComplexType
isAbstract in interface ComplexTypeComplexType.isAbstract()public String getAnyAttributeNameSpace()
ComplexType
getAnyAttributeNameSpace in interface ComplexTypeComplexType.getAnyAttributeNameSpace()public int getBlock()
ComplexType
getBlock in interface ComplexTypeComplexType.getBlock()public int getFinal()
ComplexType
getFinal in interface ComplexTypeComplexType.getFinal()public String getId()
ComplexType
getId in interface ComplexTypeComplexType.getId()public boolean isDerived()
ComplexType
isDerived in interface ComplexTypeComplexType.isDerived()
public boolean cache(Element element,
Map hints)
ComplexType
cache in interface ComplexTypeelement - DOCUMENT ME!hints - DOCUMENT ME!
ComplexType.cache(org.geotools.xml.schema.Element,
java.util.Map)public URI getNamespace()
TypeThis is used for validation of an XML document, and represents the targetNamespace of that this type resides in.
getNamespace in interface TypeType.getNamespace()public Element findChildElement(String name)
Type
findChildElement in interface Typename - the element's localName to search for.Type.findChildElement(java.lang.String)public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||