Package org.geotools.xml.gml
Class GMLComplexTypes.BoundingShapeType
- Object
- 
- BoundingShapeType
 
- 
- All Implemented Interfaces:
- ComplexType,- Type
 - Enclosing class:
- GMLComplexTypes
 
 public static class GMLComplexTypes.BoundingShapeType extends Object This class represents an BoundingShapeType within the GML Schema. This includes both the data and parsing functionality associated with an BoundingShapeType.- Author:
- dzwiers
- See Also:
- GMLSchema.GMLComplexType,- ComplexType
 
- 
- 
Constructor SummaryConstructors Constructor Description BoundingShapeType()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancache(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.booleancanEncode(Element element, Object value, Map<String,Object> hints)Can I write this object out as element specified?voidencode(Element element, Object value, PrintHandler output, Map<String,Object> hints)Encode value as element on the provided output.ElementfindChildElement(String name)Convinience method used to search this type's children for the requested element by localName.StringgetAnyAttributeNameSpace()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.intgetBlock()Specifies a mask which denotes which substitution mechanisms may be used for this complex type definition.ElementGroupinggetChild()Returns the child element representing the structure of nested child nodes (if any are allowed).Element[]getChildElements()intgetFinal()Specifies a mask which denotes which substitution mechanisms prohibited for use by child definitions of this complex type.StringgetId()Returns the xml schema id of this complexType if one exists, null otherwise.static GMLSchema.GMLComplexTypegetInstance()ClassgetInstanceType()This will return the intended Java Class for this element type.StringgetName()This returns the XML Schema declaration name of this type (both complex and simple types have names ...)URIgetNamespace()This is used for validation of an XML document, and represents the targetNamespace of that this type resides in.TypegetParent()This is used to represent the heirarchy represented within an xml schema document(s).ObjectgetValue(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).booleanisAbstract()Returns true when the complexType should be considered abstract, as defined by the XML schema of which this complex type definition is a part.booleanisDerived()This method is used to publish whether this complexType is at the root of an inheritance tree, or a leaf within an inheritance tree.booleanisMixed()Returns true if this complexType allows mixed content (Child elements and a String value).
 
- 
- 
- 
Method Detail- 
getChildElementspublic Element[] getChildElements() - See Also:
- ComplexType.getChildElements()
 
 - 
getInstancepublic static GMLSchema.GMLComplexType getInstance() 
 - 
isAbstractpublic boolean isAbstract() Description copied from interface:ComplexTypeReturns true when the complexType should be considered abstract, as defined by the XML schema of which this complex type definition is a part.- See Also:
- schema.ComplexType#isAbstract()
 
 - 
getAnyAttributeNameSpacepublic String getAnyAttributeNameSpace() Description copied from interface:ComplexTypeThis methos represents the potential 'anyAttribute' declaration's namespace attribute which may occur within a complex type definition.- See Also:
- schema.ComplexType#getAnyAttributeNameSpace()
 
 - 
getAttributespublic Attribute[] getAttributes() Description copied from interface:ComplexTypeThe set of attributes required by this complex type declaration. As per the xml schema definition, there is not an implied order to the attributes. For performance reasons an implementor may wich to order the attributes from most common to least commonly used attributes.- See Also:
- schema.ComplexType#getAttributeDescriptors()
 
 - 
getChildpublic ElementGrouping getChild() Description copied from interface:ComplexTypeReturns the child element representing the structure of nested child nodes (if any are allowed).- See Also:
- schema.ComplexType#getChildren()
 
 - 
getNamepublic String getName() Description copied from interface:TypeThis returns the XML Schema declaration name of this type (both complex and simple types have names ...)- See Also:
- schema.ComplexType#getLocalName()
 
 - 
getValuepublic Object getValue(Element element, ElementValue[] value, Attributes attrs, Map<String,Object> hints) throws SAXException Description copied from interface: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. - Returns:
- Object
- Throws:
- SAXException
- See Also:
- schema.Type#getValue(java.util.List)
 
 - 
getInstanceTypepublic Class getInstanceType() Description copied from interface: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.- See Also:
- org.geotools.xml.xsi.Type#getInstanceType()
 
 - 
findChildElementpublic Element findChildElement(String name) Description copied from interface:TypeConvinience method used to search this type's children for the requested element by localName.- Parameters:
- name- the element's localName to search for.
- See Also:
- schema.ComplexType#findChildElement(java.lang.String)
 
 - 
canEncodepublic boolean canEncode(Element element, Object value, Map<String,Object> hints) Description copied from interface:TypeCan I write this object out as element specified?- Parameters:
- 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.
- Returns:
- True when the encode method can interpret the given element/value pair into valid xml.
- See Also:
- Type.canEncode(org.geotools.xml.schema.Element, java.lang.Object, java.util.Map)
 
 - 
encodepublic void encode(Element element, Object value, PrintHandler output, Map<String,Object> hints) throws IOException, OperationNotSupportedException Description copied from interface:TypeEncode value as element on the provided output.This is encoding because the PrintHandler does not have to go back to a stream. - Parameters:
- 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.
- Throws:
- IOException- When there is an error with the Writer.
- OperationNotSupportedException- When this type cannot be encoded ... and wasn't checked first.
- See Also:
- Type.encode(org.geotools.xml.schema.Element, java.lang.Object, org.geotools.xml.PrintHandler, java.util.Map)
 
 - 
getBlockpublic int getBlock() Description copied from interface:ComplexTypeSpecifies a mask which denotes which substitution mechanisms may be used for this complex type definition.- Specified by:
- getBlockin interface- ComplexType
- See Also:
- schema.ComplexType#getBlock()
 
 - 
getFinalpublic int getFinal() Description copied from interface:ComplexTypeSpecifies a mask which denotes which substitution mechanisms prohibited for use by child definitions of this complex type.- Specified by:
- getFinalin interface- ComplexType
- See Also:
- schema.ComplexType#getFinal()
 
 - 
getIdpublic String getId() Description copied from interface:ComplexTypeReturns the xml schema id of this complexType if one exists, null otherwise.- Specified by:
- getIdin interface- ComplexType
- See Also:
- schema.ComplexType#getId()
 
 - 
isMixedpublic boolean isMixed() Description copied from interface:ComplexTypeReturns true if this complexType allows mixed content (Child elements and a String value).- Specified by:
- isMixedin interface- ComplexType
- See Also:
- schema.ComplexType#isMixed()
 
 - 
getNamespacepublic URI getNamespace() Description copied from interface:TypeThis is used for validation of an XML document, and represents the targetNamespace of that this type resides in.- Specified by:
- getNamespacein interface- Type
- See Also:
- schema.ComplexType#getNamespace()
 
 - 
isDerivedpublic boolean isDerived() Description copied from interface:ComplexTypeThis method is used to publish whether this complexType is at the root of an inheritance tree, or a leaf within an inheritance tree. This method should return true when the complexType is not a root of an inheritance tree.- Specified by:
- isDerivedin interface- ComplexType
- See Also:
- schema.ComplexType#isDerived()
 
 - 
getParentpublic Type getParent() Description copied from interface: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.- Specified by:
- getParentin interface- ComplexType
- See Also:
- schema.ComplexType#getParent()
 
 - 
cachepublic boolean cache(Element e, Map<String,Object> hints) Description copied from interface:ComplexTypeThis method is a directive to the parser whether to keep the data around in memory for post processing. Generally this should return True, except when streaming.- Specified by:
- cachein interface- ComplexType
- Returns:
- True, except when streaming the element.
- See Also:
- org.geotools.xml.schema.ComplexType#cache()
 
 
- 
 
-