org.apache.ws.jaxme.xs.util

Class DTDParser.ChildToken

protected static class DTDParser.ChildToken extends Object

Field Summary
static intCHOICE
Type of a NAME token; see DTDParser for the definition of CHOICE.
static intSEQUENCE
Type of a NAME token; see DTDParser for the definition of SEQUENCE.
Constructor Summary
protected ChildToken(int pType, String pMultiplicity)
Method Summary
voidadd(DTDParser.ChildToken pToken)
Adds a token to the list of tokens.
voidadd(String pName)
Adds a name to the list of tokens.
Object[]getChilds()
Returns the tokens childs.
StringgetMultiplicity()
Returns the tokens multiplicity.
intgetType()
Returns the token type; either of SEQUENCE, or CHOICE.

Field Detail

CHOICE

public static final int CHOICE
Type of a NAME token; see DTDParser for the definition of CHOICE.

SEQUENCE

public static final int SEQUENCE
Type of a NAME token; see DTDParser for the definition of SEQUENCE.

Constructor Detail

ChildToken

protected ChildToken(int pType, String pMultiplicity)

Method Detail

add

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

add

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

getChilds

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

getMultiplicity

public String getMultiplicity()
Returns the tokens multiplicity.

getType

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