Package org.geotools.xml.filter
Class FilterSchema.FilterElement
- Object
-
- FilterElement
-
- All Implemented Interfaces:
Element
,ElementGrouping
- Enclosing class:
- FilterSchema
public static class FilterSchema.FilterElement extends Object implements Element
-
-
Constructor Summary
Constructors Constructor Description FilterElement(String name, Type type)
FilterElement(String name, Type type, Element substitutionGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Element
findChildElement(String name1)
Convinience method which will search for the specified element within it's children.Element
findChildElement(String localName, URI namespaceURI)
int
getBlock()
String
getDefault()
This returns the default value for the Element as a Stringint
getFinal()
String
getFixed()
This returns the fixed value for the Element as a Stringint
getGrouping()
Returns the mask informing the caller as to the type of object they are dealing with.String
getId()
The Schema ID for this element definition.int
getMaxOccurs()
returns the max number of allowable occurences within the xml schema for this construct.int
getMinOccurs()
returns the min number of allowable occurences within the xml schema for this construct.String
getName()
Returns the element declaration's name in the Schema document, and element name in the instance document.URI
getNamespace()
Element
getSubstitutionGroup()
This returns a reference to an element representing this element's substitution group.Type
getType()
Returns the declared type for this Element in the given Schema.boolean
isAbstract()
Returns True when the instance of this XML Schema Element is abstract, false otherwiseboolean
isForm()
boolean
isNillable()
Returns true when the element is nillable, false otherwise
-
-
-
Method Detail
-
isAbstract
public boolean isAbstract()
Description copied from interface:Element
Returns True when the instance of this XML Schema Element is abstract, false otherwise- Specified by:
isAbstract
in interfaceElement
- See Also:
Element.isAbstract()
-
getBlock
public int getBlock()
- Specified by:
getBlock
in interfaceElement
- See Also:
Element.getBlock()
-
getDefault
public String getDefault()
Description copied from interface:Element
This returns the default value for the Element as a String- Specified by:
getDefault
in interfaceElement
- See Also:
Element.getDefault()
-
getFinal
public int getFinal()
- Specified by:
getFinal
in interfaceElement
- See Also:
Element.getFinal()
-
getFixed
public String getFixed()
Description copied from interface:Element
This returns the fixed value for the Element as a String- Specified by:
getFixed
in interfaceElement
- See Also:
Element.getFixed()
-
isForm
public boolean isForm()
- Specified by:
isForm
in interfaceElement
- See Also:
Element.isForm()
-
getId
public String getId()
Description copied from interface:Element
The Schema ID for this element definition.- Specified by:
getId
in interfaceElement
- See Also:
Element.getId()
-
getMaxOccurs
public int getMaxOccurs()
Description copied from interface:ElementGrouping
returns the max number of allowable occurences within the xml schema for this construct.- Specified by:
getMaxOccurs
in interfaceElement
- Specified by:
getMaxOccurs
in interfaceElementGrouping
- See Also:
Element.getMaxOccurs()
-
getMinOccurs
public int getMinOccurs()
Description copied from interface:ElementGrouping
returns the min number of allowable occurences within the xml schema for this construct.- Specified by:
getMinOccurs
in interfaceElement
- Specified by:
getMinOccurs
in interfaceElementGrouping
- See Also:
Element.getMinOccurs()
-
getName
public String getName()
Description copied from interface:Element
Returns the element declaration's name in the Schema document, and element name in the instance document.- Specified by:
getName
in interfaceElement
- See Also:
Element.getName()
-
getNamespace
public URI getNamespace()
- Specified by:
getNamespace
in interfaceElement
- See Also:
Element.getNamespace()
-
isNillable
public boolean isNillable()
Description copied from interface:Element
Returns true when the element is nillable, false otherwise- Specified by:
isNillable
in interfaceElement
- See Also:
Element.isNillable()
-
getSubstitutionGroup
public Element getSubstitutionGroup()
Description copied from interface:Element
This returns a reference to an element representing this element's substitution group. This is of particular importance when resolving an instance document's value.- Specified by:
getSubstitutionGroup
in interfaceElement
- See Also:
Element.getSubstitutionGroup()
-
getType
public Type getType()
Description copied from interface:Element
Returns the declared type for this Element in the given Schema.- Specified by:
getType
in interfaceElement
- See Also:
Element.getType()
-
getGrouping
public int getGrouping()
Description copied from interface:ElementGrouping
Returns the mask informing the caller as to the type of object they are dealing with.- Specified by:
getGrouping
in interfaceElementGrouping
- See Also:
ElementGrouping.getGrouping()
-
findChildElement
public Element findChildElement(String name1)
Description copied from interface:ElementGrouping
Convinience method which will search for the specified element within it's children. This is typically implemented recursively, and as such may be expensive to execute (so don't call me too much if you want to be fast).- Specified by:
findChildElement
in interfaceElementGrouping
- Parameters:
name1
- The Element LocalName (namespace and prefix should not be included)- Returns:
- Element or null if not found.
- See Also:
ElementGrouping.findChildElement(java.lang.String)
-
findChildElement
public Element findChildElement(String localName, URI namespaceURI)
- Specified by:
findChildElement
in interfaceElementGrouping
-
-