Package org.geotools.xml.schema
Interface ElementGrouping
- All Known Implementing Classes:
- AllGT,- AnyGT,- ChoiceGT,- ElementGT,- FilterSchema.FilterElement,- GroupGT,- GroupHandler.DefaultGroup,- ogcElement,- SequenceGT,- sldElement
public interface ElementGrouping
This represents an abstract collection of xml element definitions within a Schema.
 
To avoid multiple type checks, a group mask was include, as described below.
- Author:
- dzwiers www.refractions.net
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intElementGrouping mask to determine the type of ElementGrouping represented.static final intElementGrouping mask to determine the type of ElementGrouping represented.static final intElementGrouping mask to determine the type of ElementGrouping represented.static final intElementGrouping mask to determine the type of ElementGrouping represented.static final intElementGrouping mask to determine the type of ElementGrouping represented.static final intElementGrouping mask to determine the type of ElementGrouping represented.static final int
- 
Method SummaryModifier and TypeMethodDescriptionfindChildElement(String name) Convinience method which will search for the specified element within it's children.findChildElement(String localName, URI namespaceURI) intReturns the mask informing the caller as to the type of object they are dealing with.intreturns the max number of allowable occurences within the xml schema for this construct.intreturns the min number of allowable occurences within the xml schema for this construct.
- 
Field Details- 
ELEMENTstatic final int ELEMENTElementGrouping mask to determine the type of ElementGrouping represented. This is intended to reduce the use of the instanceof operand, increasing performance.- See Also:
 
- 
GROUPstatic final int GROUPElementGrouping mask to determine the type of ElementGrouping represented. This is intended to reduce the use of the instanceof operand, increasing performance.- See Also:
 
- 
ANYstatic final int ANYElementGrouping mask to determine the type of ElementGrouping represented. This is intended to reduce the use of the instanceof operand, increasing performance.- See Also:
 
- 
SEQUENCEstatic final int SEQUENCEElementGrouping mask to determine the type of ElementGrouping represented. This is intended to reduce the use of the instanceof operand, increasing performance.- See Also:
 
- 
CHOICEstatic final int CHOICEElementGrouping mask to determine the type of ElementGrouping represented. This is intended to reduce the use of the instanceof operand, increasing performance.- See Also:
 
- 
ALLstatic final int ALLElementGrouping mask to determine the type of ElementGrouping represented. This is intended to reduce the use of the instanceof operand, increasing performance.- See Also:
 
- 
UNBOUNDEDstatic final int UNBOUNDED- See Also:
 
 
- 
- 
Method Details- 
getGroupingint getGrouping()Returns the mask informing the caller as to the type of object they are dealing with.
- 
findChildElementConvinience 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).- Parameters:
- name- The Element LocalName (namespace and prefix should not be included)
- Returns:
- Element or null if not found.
 
- 
getMaxOccursint getMaxOccurs()returns the max number of allowable occurences within the xml schema for this construct.
- 
getMinOccursint getMinOccurs()returns the min number of allowable occurences within the xml schema for this construct.
- 
findChildElement
 
-