| org.geotools.xml.schema.ElementGrouping
ElementGrouping | public interface ElementGrouping (Code) | |
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 Summary | |
final public static int | ALL ElementGrouping mask to determine the type of ElementGrouping
represented. | final public static int | ANY ElementGrouping mask to determine the type of ElementGrouping
represented. | final public static int | CHOICE ElementGrouping mask to determine the type of ElementGrouping
represented. | final public static int | ELEMENT ElementGrouping mask to determine the type of ElementGrouping
represented. | final public static int | GROUP ElementGrouping mask to determine the type of ElementGrouping
represented. | final public static int | SEQUENCE ElementGrouping mask to determine the type of ElementGrouping
represented. | final public static int | UNBOUNDED |
Method Summary | |
public Element | findChildElement(String name)
Convinience method which will search for the specified element within
it's children. | public Element | findChildElement(String localName, URI namespaceURI) | public int | getGrouping()
Returns the mask informing the caller as to the type of object they are
dealing with. | public int | getMaxOccurs()
returns the max number of allowable occurences within the xml schema for
this construct. | public int | getMinOccurs()
returns the min number of allowable occurences within the xml schema for
this construct. |
ALL | final public static int ALL(Code) | | ElementGrouping mask to determine the type of ElementGrouping
represented. This is intended to reduce the use of the instanceof
operand, increasing performance.
|
ANY | final public static int ANY(Code) | | ElementGrouping mask to determine the type of ElementGrouping
represented. This is intended to reduce the use of the instanceof
operand, increasing performance.
|
CHOICE | final public static int CHOICE(Code) | | ElementGrouping mask to determine the type of ElementGrouping
represented. This is intended to reduce the use of the instanceof
operand, increasing performance.
|
ELEMENT | final public static int ELEMENT(Code) | | ElementGrouping mask to determine the type of ElementGrouping
represented. This is intended to reduce the use of the instanceof
operand, increasing performance.
|
GROUP | final public static int GROUP(Code) | | ElementGrouping mask to determine the type of ElementGrouping
represented. This is intended to reduce the use of the instanceof
operand, increasing performance.
|
SEQUENCE | final public static int SEQUENCE(Code) | | ElementGrouping mask to determine the type of ElementGrouping
represented. This is intended to reduce the use of the instanceof
operand, increasing performance.
|
UNBOUNDED | final public static int UNBOUNDED(Code) | | |
findChildElement | public Element findChildElement(String name)(Code) | |
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).
Parameters: name - The Element LocalName (namespace and prefix should not beincluded) Element or null if not found. |
getGrouping | public int getGrouping()(Code) | |
Returns the mask informing the caller as to the type of object they are
dealing with.
|
getMaxOccurs | public int getMaxOccurs()(Code) | |
returns the max number of allowable occurences within the xml schema for
this construct.
|
getMinOccurs | public int getMinOccurs()(Code) | |
returns the min number of allowable occurences within the xml schema for
this construct.
|
|
|