org.geotools.xml.schema.impl
Class AnyGT

java.lang.Object
  extended byorg.geotools.xml.schema.impl.AnyGT
All Implemented Interfaces:
Any, ElementGrouping

public class AnyGT
extends java.lang.Object
implements Any

DOCUMENT ME!

Author:
dzwiers

Field Summary
 
Fields inherited from interface org.geotools.xml.schema.Any
ALL
 
Fields inherited from interface org.geotools.xml.schema.ElementGrouping
ANY, CHOICE, ELEMENT, GROUP, SEQUENCE, UNBOUNDED
 
Constructor Summary
AnyGT(java.net.URI namespace)
           
AnyGT(java.net.URI namespace, int min, int max)
           
 
Method Summary
 Element findChildElement(java.lang.String name)
           Convinience method which will search for the specified element within it's children.
 int getGrouping()
           Returns the mask informing the caller as to the type of object they are dealing with.
 java.lang.String getId()
           Returns the element declaration's id for this schema element.
 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.
 java.net.URI getNamespace()
           Returns the namespace attribute of the 'any' contruct that an instance of this interface is representing within an XML Schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyGT

public AnyGT(java.net.URI namespace)

AnyGT

public AnyGT(java.net.URI namespace,
             int min,
             int max)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: Any

Returns the element declaration's id for this schema element.

Specified by:
getId in interface Any
Returns:
See Also:
Any.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 interface Any
See Also:
ElementGrouping.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 interface Any
See Also:
ElementGrouping.getMinOccurs()

getNamespace

public java.net.URI getNamespace()
Description copied from interface: Any

Returns the namespace attribute of the 'any' contruct that an instance of this interface is representing within an XML Schema.

Specified by:
getNamespace in interface Any
Returns:
See Also:
Any.getNamespace()

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 interface ElementGrouping
Returns:
See Also:
ElementGrouping.getGrouping()

findChildElement

public Element findChildElement(java.lang.String name)
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 interface ElementGrouping
Parameters:
name - The Element LocalName (namespace and prefix should not be included)
Returns:
Element or null if not found.
See Also:
ElementGrouping.findChildElement(java.lang.String)


Copyright © GeoTools. All Rights Reserved.