Class GMLComplexTypes.AbstractFeatureCollectionsBaseType

  • All Implemented Interfaces:
    ComplexType, Type
    Enclosing class:
    GMLComplexTypes

    public static class GMLComplexTypes.AbstractFeatureCollectionsBaseType
    extends GMLComplexTypes.AbstractFeatureType
    This class represents an AbstractFeatureCollectionsBaseType within the GML Schema. This includes both the data and parsing functionality associated with an AbstractFeatureCollectionsBaseType.
    Author:
    dzwiers
    See Also:
    GMLSchema.GMLComplexType, ComplexType
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      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).
      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()  
      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).
      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).
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractFeatureCollectionsBaseType

        public AbstractFeatureCollectionsBaseType()
    • Method Detail

      • getInstance

        public static GMLSchema.GMLComplexType getInstance()
      • isAbstract

        public boolean isAbstract()
        Description copied from interface: ComplexType
        Returns true when the complexType should be considered abstract, as defined by the XML schema of which this complex type definition is a part.
        Specified by:
        isAbstract in interface ComplexType
        Overrides:
        isAbstract in class GMLComplexTypes.AbstractFeatureType
        See Also:
        schema.ComplexType#isAbstract()
      • getAttributes

        public Attribute[] getAttributes()
        Description copied from interface: ComplexType
        The 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.
        Specified by:
        getAttributes in interface ComplexType
        Overrides:
        getAttributes in class GMLComplexTypes.AbstractFeatureType
        See Also:
        schema.ComplexType#getAttributeDescriptors()
      • getName

        public String getName()
        Description copied from interface: Type
        This returns the XML Schema declaration name of this type (both complex and simple types have names ...)
        Specified by:
        getName in interface Type
        Overrides:
        getName in class GMLComplexTypes.AbstractFeatureType
        See Also:
        schema.ComplexType#getLocalName()
      • findChildElement

        public Element findChildElement​(String name)
        Description copied from interface: Type
        Convinience method used to search this type's children for the requested element by localName.
        Specified by:
        findChildElement in interface Type
        Overrides:
        findChildElement in class GMLComplexTypes.AbstractFeatureType
        Parameters:
        name - the element's localName to search for.
        See Also:
        schema.ComplexType#findChildElement(java.lang.String)
      • getBlock

        public int getBlock()
        Description copied from interface: ComplexType
        Specifies a mask which denotes which substitution mechanisms may be used for this complex type definition.
        Specified by:
        getBlock in interface ComplexType
        See Also:
        schema.ComplexType#getBlock()
      • getFinal

        public int getFinal()
        Description copied from interface: ComplexType
        Specifies a mask which denotes which substitution mechanisms prohibited for use by child definitions of this complex type.
        Specified by:
        getFinal in interface ComplexType
        See Also:
        schema.ComplexType#getFinal()
      • getId

        public String getId()
        Description copied from interface: ComplexType
        Returns the xml schema id of this complexType if one exists, null otherwise.
        Specified by:
        getId in interface ComplexType
        See Also:
        schema.ComplexType#getId()
      • isMixed

        public boolean isMixed()
        Description copied from interface: ComplexType
        Returns true if this complexType allows mixed content (Child elements and a String value).
        Specified by:
        isMixed in interface ComplexType
        See Also:
        schema.ComplexType#isMixed()
      • getNamespace

        public URI getNamespace()
        Description copied from interface: Type
        This is used for validation of an XML document, and represents the targetNamespace of that this type resides in.
        Specified by:
        getNamespace in interface Type
        See Also:
        schema.ComplexType#getNamespace()
      • isDerived

        public boolean isDerived()
        Description copied from interface: ComplexType
        This 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:
        isDerived in interface ComplexType
        See Also:
        schema.ComplexType#isDerived()
      • getParent

        public Type getParent()
        Description copied from interface: ComplexType
        This 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:
        getParent in interface ComplexType
        See Also:
        schema.ComplexType#getParent()
      • cache

        public boolean cache​(Element e,
                             Map<String,​Object> hints)
        Description copied from interface: ComplexType
        This 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:
        cache in interface ComplexType
        Returns:
        True, except when streaming the element.
        See Also:
        org.geotools.xml.schema.ComplexType#cache()