|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The DTD content model handler interface defines callback methods to report information items in DTD content models of an element declaration. Parser components interested in DTD content model information implement this interface and are registered as the DTD content model handler on the DTD content model source.
XMLDTDHandler
Field Summary | |
static short |
OCCURS_ONE_OR_MORE
This occurrence count limits the element, choice, or sequence in a children content model to one or more. |
static short |
OCCURS_ZERO_OR_MORE
This occurrence count limits the element, choice, or sequence in a children content model to zero or more. |
static short |
OCCURS_ZERO_OR_ONE
This occurrence count limits the element, choice, or sequence in a children content model to zero or one. |
static short |
SEPARATOR_CHOICE
A choice separator for children and mixed content models. |
static short |
SEPARATOR_SEQUENCE
A sequence separator for children content models. |
Method Summary | |
void |
any()
A content model of ANY. |
void |
element(java.lang.String elementName)
A referenced element in a mixed or children content model. |
void |
empty()
A content model of EMPTY. |
void |
endContentModel()
The end of a content model. |
void |
endGroup()
The end of a group for mixed or children content models. |
void |
occurrence(short occurrence)
The occurrence count for a child in a children content model or for the mixed content model group. |
void |
pcdata()
The appearance of "#PCDATA" within a group signifying a mixed content model. |
void |
separator(short separator)
The separator between choices or sequences of a mixed or children content model. |
void |
startContentModel(java.lang.String elementName)
The start of a content model. |
void |
startGroup()
A start of either a mixed or children content model. |
Field Detail |
public static final short SEPARATOR_CHOICE
For example:
<!ELEMENT elem (foo|bar)> <!ELEMENT elem (foo|bar+)> <!ELEMENT elem (foo|bar|baz)> <!ELEMENT elem (#PCDATA|foo|bar)*>
SEPARATOR_SEQUENCE
public static final short SEPARATOR_SEQUENCE
<!ELEMENT elem (foo,bar)> <!ELEMENT elem (foo,bar*)> <!ELEMENT elem (foo,bar,baz)>
SEPARATOR_CHOICE
public static final short OCCURS_ZERO_OR_ONE
For example:
<!ELEMENT elem (foo?)>
OCCURS_ZERO_OR_MORE
,
OCCURS_ONE_OR_MORE
public static final short OCCURS_ZERO_OR_MORE
For example:
<!ELEMENT elem (foo*)> <!ELEMENT elem (#PCDATA|foo|bar)*>
OCCURS_ZERO_OR_ONE
,
OCCURS_ONE_OR_MORE
public static final short OCCURS_ONE_OR_MORE
For example:
<!ELEMENT elem (foo+)>
OCCURS_ZERO_OR_ONE
,
OCCURS_ZERO_OR_MORE
Method Detail |
public void startContentModel(java.lang.String elementName) throws XNIException
elementName
- The name of the element.public void any() throws XNIException
empty()
,
startGroup()
public void empty() throws XNIException
any()
,
startGroup()
public void startGroup() throws XNIException
pcdata()
method. A children content model will
contain additional groups and/or elements.any()
,
empty()
public void pcdata() throws XNIException
startGroup()
.startGroup()
public void element(java.lang.String elementName) throws XNIException
elementName
- The name of the referenced element.public void separator(short separator) throws XNIException
separator
- The type of children separator.SEPARATOR_CHOICE
,
SEPARATOR_SEQUENCE
public void occurrence(short occurrence) throws XNIException
occurrence
- The occurrence count for the last element
or group.OCCURS_ZERO_OR_ONE
,
OCCURS_ZERO_OR_MORE
,
OCCURS_ONE_OR_MORE
public void endGroup() throws XNIException
public void endContentModel() throws XNIException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |