org.apache.ws.jaxme.xs.util

Class 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

ChildToken(int pType, String pMultiplicity)

Method Summary

void
add(String pName)
Adds a name to the list of tokens.
void
add(DTDParser.ChildToken pToken)
Adds a token to the list of tokens.
Object[]
getChilds()
Returns the tokens childs.
String
getMultiplicity()
Returns the tokens multiplicity.
int
getType()
Returns the token type; either of SEQUENCE, or CHOICE.

Field Details

CHOICE

public static final int CHOICE
Field Value:
2

SEQUENCE

public static final int SEQUENCE
Field Value:
1

Constructor Details

ChildToken

protected ChildToken(int pType,
                     String pMultiplicity)

Method Details

add

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

add

public void add(DTDParser.ChildToken pToken)
Adds a token 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()