org.geotools.xml.schema.impl
Class SequenceGT

Object
  extended by SequenceGT
All Implemented Interfaces:
ElementGrouping, Sequence

public class SequenceGT
extends Object
implements Sequence

DOCUMENT ME!

Author:
dzwiers
Module:
modules/library/xml (gt-xml.jar)

Field Summary
 
Fields inherited from interface ElementGrouping
ALL, ANY, CHOICE, ELEMENT, GROUP, SEQUENCE, UNBOUNDED
 
Constructor Summary
SequenceGT(ElementGrouping[] children)
           
SequenceGT(String id, ElementGrouping[] children, int min, int max)
           
 
Method Summary
 Element findChildElement(String name)
           Convinience method which will search for the specified element within it's children.
 Element findChildElement(String localName, URI namespaceURI)
           
 ElementGrouping[] getChildren()
           This method returns an ORDERED list of children.
 int getGrouping()
           Returns the mask informing the caller as to the type of object they are dealing with.
 String getId()
           The Schema ID for this sequence definition.
 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.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceGT

public SequenceGT(ElementGrouping[] children)

SequenceGT

public SequenceGT(String id,
                  ElementGrouping[] children,
                  int min,
                  int max)
Method Detail

getChildren

public ElementGrouping[] getChildren()
Description copied from interface: Sequence

This method returns an ORDERED list of children. The children in the list may be singular elements, sequences, choices, ... , or groups.

Specified by:
getChildren in interface Sequence
See Also:
Sequence.getChildren()

getId

public String getId()
Description copied from interface: Sequence

The Schema ID for this sequence definition.

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

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 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)

findChildElement

public Element findChildElement(String localName,
                                URI namespaceURI)
Specified by:
findChildElement in interface ElementGrouping


Copyright © 1996-2010 Geotools. All Rights Reserved.