org.geotools.xml.schema.impl
Class GroupGT

Object
  extended by GroupGT
All Implemented Interfaces:
ElementGrouping, Group

public class GroupGT
extends Object
implements Group

DOCUMENT ME!

Author:
dzwiers
Module:

Field Summary
 
Fields inherited from interface ElementGrouping
ALL, ANY, CHOICE, ELEMENT, GROUP, SEQUENCE, UNBOUNDED
 
Constructor Summary
GroupGT(String id, String name, URI namespace, ElementGrouping child, int min, int max)
          Creates a new GroupGT object.
 
Method Summary
 Element findChildElement(String name1)
           Convinience method which will search for the specified element within it's children.
 Element findChildElement(String localName, URI namespaceURI)
           
 ElementGrouping getChild()
           Returns the Child Schema element (Choice or Sequence) declaring valid element sequences for this group.
 int getGrouping()
           Returns the mask informing the caller as to the type of object they are dealing with.
 String getId()
           The Group's declaration object id.
 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()
           The group's name in the Schema document
 URI getNamespace()
          DOCUMENT ME!
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupGT

public GroupGT(String id,
               String name,
               URI namespace,
               ElementGrouping child,
               int min,
               int max)
Creates a new GroupGT object.

Parameters:
id - DOCUMENT ME!
name - DOCUMENT ME!
namespace - DOCUMENT ME!
child - DOCUMENT ME!
min - DOCUMENT ME!
max - DOCUMENT ME!
Method Detail

getChild

public ElementGrouping getChild()
Description copied from interface: Group

Returns the Child Schema element (Choice or Sequence) declaring valid element sequences for this group.

Specified by:
getChild in interface Group
See Also:
Group.getChild()

getId

public String getId()
Description copied from interface: Group

The Group's declaration object id.

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

getName

public String getName()
Description copied from interface: Group

The group's name in the Schema document

Specified by:
getName in interface Group
See Also:
Group.getName()

getNamespace

public URI getNamespace()
Description copied from interface: Group
DOCUMENT ME!

Specified by:
getNamespace in interface Group
See Also:
Group.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
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 interface ElementGrouping
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 interface ElementGrouping


Copyright © 1996-2009 Geotools. All Rights Reserved.