org.apache.ws.jaxme.xs.util
Class DTDParser.ChildToken

java.lang.Object
  extended by org.apache.ws.jaxme.xs.util.DTDParser.ChildToken
Enclosing class:
DTDParser

protected static class DTDParser.ChildToken
extends java.lang.Object


Field Summary
static int CHOICE
          Type of a NAME token; see DTDParser.parseChildren(XsTTopLevelElement, String, Locator) for the definition of CHOICE.
static int SEQUENCE
          Type of a NAME token; see DTDParser.parseChildren(XsTTopLevelElement, String, Locator) for the definition of SEQUENCE.
 
Constructor Summary
protected DTDParser.ChildToken(int pType, java.lang.String pMultiplicity)
           
 
Method Summary
 void add(DTDParser.ChildToken pToken)
          Adds a token to the list of tokens.
 void add(java.lang.String pName)
          Adds a name to the list of tokens.
 java.lang.Object[] getChilds()
          Returns the tokens childs.
 java.lang.String getMultiplicity()
          Returns the tokens multiplicity.
 int getType()
          Returns the token type; either of SEQUENCE, or CHOICE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEQUENCE

public static final int SEQUENCE
Type of a NAME token; see DTDParser.parseChildren(XsTTopLevelElement, String, Locator) for the definition of SEQUENCE.

See Also:
Constant Field Values

CHOICE

public static final int CHOICE
Type of a NAME token; see DTDParser.parseChildren(XsTTopLevelElement, String, Locator) for the definition of CHOICE.

See Also:
Constant Field Values
Constructor Detail

DTDParser.ChildToken

protected DTDParser.ChildToken(int pType,
                               java.lang.String pMultiplicity)
Method Detail

getType

public int getType()
Returns the token type; either of SEQUENCE, or CHOICE.


add

public void add(DTDParser.ChildToken pToken)
Adds a token to the list of tokens.


add

public void add(java.lang.String pName)
Adds a name to the list of tokens.


getChilds

public java.lang.Object[] getChilds()
Returns the tokens childs.


getMultiplicity

public java.lang.String getMultiplicity()
Returns the tokens multiplicity.