public static class GMLComplexTypes.AbstractFeatureType extends Object
GMLSchema.GMLComplexType
,
ComplexType
Modifier and Type | Field and Description |
---|---|
protected static Attribute[] |
attributes |
Constructor and Description |
---|
AbstractFeatureType() |
Modifier and Type | Method and Description |
---|---|
boolean |
cache(Element e,
Map<String,Object> 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<String,Object> hints)
Can I write this object out as element specified?
|
void |
encode(Element element,
Object value,
PrintHandler output,
Map<String,Object> hints)
Encode value as element on the provided output.
|
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() |
SimpleFeature |
getFeature(Element element,
ElementValue[] value,
Attributes attrs,
Map<String,Object> hints,
SimpleFeatureType ft) |
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 GMLSchema.GMLComplexType |
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<String,Object> 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).
|
protected static final Attribute[] attributes
public Element[] getChildElements()
ComplexType.getChildElements()
public static GMLSchema.GMLComplexType getInstance()
public boolean isAbstract()
ComplexType
schema.ComplexType#isAbstract()
public String getAnyAttributeNameSpace()
ComplexType
schema.ComplexType#getAnyAttributeNameSpace()
public Attribute[] getAttributes()
ComplexType
schema.ComplexType#getAttributeDescriptors()
public ElementGrouping getChild()
ComplexType
schema.ComplexType#getChildren()
public String getName()
Type
schema.ComplexType#getLocalName()
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map<String,Object> hints) throws SAXException
Type
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.
SAXException
schema.Type#getValue(java.util.List)
public SimpleFeature getFeature(Element element, ElementValue[] value, Attributes attrs, Map<String,Object> hints, SimpleFeatureType ft) throws SAXException
SAXException
public Class getInstanceType()
Type
org.geotools.xml.xsi.Type#getInstanceType()
public Element findChildElement(String name)
Type
name
- the element's localName to search for.schema.ComplexType#findChildElement(java.lang.String)
public boolean canEncode(Element element, Object value, Map<String,Object> hints)
Type
element
- 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.Type.canEncode(org.geotools.xml.schema.Element,
java.lang.Object, java.util.Map)
public void encode(Element element, Object value, PrintHandler output, Map<String,Object> hints) throws IOException, OperationNotSupportedException
Type
This is encoding because the PrintHandler does not have to go back to a stream.
element
- 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.OperationNotSupportedException
- When this type cannot be encoded ... and wasn't
checked first.Type.encode(org.geotools.xml.schema.Element,
java.lang.Object, org.geotools.xml.PrintHandler, java.util.Map)
public int getBlock()
ComplexType
getBlock
in interface ComplexType
schema.ComplexType#getBlock()
public int getFinal()
ComplexType
getFinal
in interface ComplexType
schema.ComplexType#getFinal()
public String getId()
ComplexType
getId
in interface ComplexType
schema.ComplexType#getId()
public boolean isMixed()
ComplexType
isMixed
in interface ComplexType
schema.ComplexType#isMixed()
public URI getNamespace()
Type
getNamespace
in interface Type
schema.ComplexType#getNamespace()
public boolean isDerived()
ComplexType
isDerived
in interface ComplexType
schema.ComplexType#isDerived()
public Type getParent()
ComplexType
getParent
in interface ComplexType
schema.ComplexType#getParent()
public boolean cache(Element e, Map<String,Object> hints)
ComplexType
cache
in interface ComplexType
org.geotools.xml.schema.ComplexType#cache()
Copyright © 1996–2023 Geotools. All rights reserved.