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 ElementfindChildElement(String name1)Convinience method which will search for the specified element within it's children.ElementfindChildElement(String localName, URI namespaceURI)intgetBlock()StringgetDefault()This returns the default value for the Element as a StringintgetFinal()StringgetFixed()This returns the fixed value for the Element as a StringintgetGrouping()Returns the mask informing the caller as to the type of object they are dealing with.StringgetId()The Schema ID for this element definition.intgetMaxOccurs()returns the max number of allowable occurences within the xml schema for this construct.intgetMinOccurs()returns the min number of allowable occurences within the xml schema for this construct.StringgetName()Returns the element declaration's name in the Schema document, and element name in the instance document.URIgetNamespace()ElementgetSubstitutionGroup()This returns a reference to an element representing this element's substitution group.TypegetType()Returns the declared type for this Element in the given Schema.booleanisAbstract()Returns True when the instance of this XML Schema Element is abstract, false otherwisebooleanisForm()booleanisNillable()Returns true when the element is nillable, false otherwise
-
-
-
Method Detail
-
isAbstract
public boolean isAbstract()
Description copied from interface:ElementReturns True when the instance of this XML Schema Element is abstract, false otherwise- Specified by:
isAbstractin interfaceElement- See Also:
Element.isAbstract()
-
getBlock
public int getBlock()
- Specified by:
getBlockin interfaceElement- See Also:
Element.getBlock()
-
getDefault
public String getDefault()
Description copied from interface:ElementThis returns the default value for the Element as a String- Specified by:
getDefaultin interfaceElement- See Also:
Element.getDefault()
-
getFinal
public int getFinal()
- Specified by:
getFinalin interfaceElement- See Also:
Element.getFinal()
-
getFixed
public String getFixed()
Description copied from interface:ElementThis returns the fixed value for the Element as a String- Specified by:
getFixedin interfaceElement- See Also:
Element.getFixed()
-
isForm
public boolean isForm()
- Specified by:
isFormin interfaceElement- See Also:
Element.isForm()
-
getId
public String getId()
Description copied from interface:ElementThe Schema ID for this element definition.- Specified by:
getIdin interfaceElement- See Also:
Element.getId()
-
getMaxOccurs
public int getMaxOccurs()
Description copied from interface:ElementGroupingreturns the max number of allowable occurences within the xml schema for this construct.- Specified by:
getMaxOccursin interfaceElement- Specified by:
getMaxOccursin interfaceElementGrouping- See Also:
Element.getMaxOccurs()
-
getMinOccurs
public int getMinOccurs()
Description copied from interface:ElementGroupingreturns the min number of allowable occurences within the xml schema for this construct.- Specified by:
getMinOccursin interfaceElement- Specified by:
getMinOccursin interfaceElementGrouping- See Also:
Element.getMinOccurs()
-
getName
public String getName()
Description copied from interface:ElementReturns the element declaration's name in the Schema document, and element name in the instance document.- Specified by:
getNamein interfaceElement- See Also:
Element.getName()
-
getNamespace
public URI getNamespace()
- Specified by:
getNamespacein interfaceElement- See Also:
Element.getNamespace()
-
isNillable
public boolean isNillable()
Description copied from interface:ElementReturns true when the element is nillable, false otherwise- Specified by:
isNillablein interfaceElement- See Also:
Element.isNillable()
-
getSubstitutionGroup
public Element getSubstitutionGroup()
Description copied from interface:ElementThis 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:
getSubstitutionGroupin interfaceElement- See Also:
Element.getSubstitutionGroup()
-
getType
public Type getType()
Description copied from interface:ElementReturns the declared type for this Element in the given Schema.- Specified by:
getTypein interfaceElement- See Also:
Element.getType()
-
getGrouping
public int getGrouping()
Description copied from interface:ElementGroupingReturns the mask informing the caller as to the type of object they are dealing with.- Specified by:
getGroupingin interfaceElementGrouping- See Also:
ElementGrouping.getGrouping()
-
findChildElement
public Element findChildElement(String name1)
Description copied from interface:ElementGroupingConvinience 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:
findChildElementin 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:
findChildElementin interfaceElementGrouping
-
-