org.apache.xerces.xni.XMLDTDContentModelHandler |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
short | OCCURS_ONE_OR_MORE | This occurrence count limits the element, choice, or sequence in a children content model to one or more. | |||||||||
short | OCCURS_ZERO_OR_MORE | This occurrence count limits the element, choice, or sequence in a children content model to zero or more. | |||||||||
short | OCCURS_ZERO_OR_ONE | This occurrence count limits the element, choice, or sequence in a children content model to zero or one. | |||||||||
short | SEPARATOR_CHOICE | A choice separator for children and mixed content models. | |||||||||
short | SEPARATOR_SEQUENCE | A sequence separator for children content models. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A content model of ANY.
| |||||||||||
A referenced element in a mixed or children content model.
| |||||||||||
A content model of EMPTY.
| |||||||||||
The end of a content model.
| |||||||||||
The end of a group for mixed or children content models.
| |||||||||||
The occurrence count for a child in a children content model or
for the mixed content model group.
| |||||||||||
The appearance of "#PCDATA" within a group signifying a
mixed content model.
| |||||||||||
The separator between choices or sequences of a mixed or children
content model.
| |||||||||||
The start of a content model.
| |||||||||||
A start of either a mixed or children content model.
|
This occurrence count limits the element, choice, or sequence in a children content model to one or more. In other words, the child may appear an arbitrary number of times, but must appear at least once.
For example:
<!ELEMENT elem (foo+)>
This occurrence count limits the element, choice, or sequence in a children content model to zero or more. In other words, the child may appear an arbitrary number of times, or not at all. This occurrence count is also used for mixed content models.
For example:
<!ELEMENT elem (foo*)> <!ELEMENT elem (#PCDATA|foo|bar)*>
This occurrence count limits the element, choice, or sequence in a children content model to zero or one. In other words, the child is optional.
For example:
<!ELEMENT elem (foo?)>
A choice separator for children and mixed content models. This separator is used to specify that the allowed child is one of a collection.
For example:
<!ELEMENT elem (foo|bar)> <!ELEMENT elem (foo|bar+)> <!ELEMENT elem (foo|bar|baz)> <!ELEMENT elem (#PCDATA|foo|bar)*>
A sequence separator for children content models. This separator is used to specify that the allowed children must follow in the specified sequence.
<!ELEMENT elem (foo,bar)> <!ELEMENT elem (foo,bar*)> <!ELEMENT elem (foo,bar,baz)>
A content model of ANY.
augmentations | Additional information that may include infoset augmentations. |
---|
XNIException | Thrown by handler to signal an error. |
---|
A referenced element in a mixed or children content model.
elementName | The name of the referenced element. |
---|---|
augmentations | Additional information that may include infoset augmentations. |
XNIException | Thrown by handler to signal an error. |
---|
A content model of EMPTY.
augmentations | Additional information that may include infoset augmentations. |
---|
XNIException | Thrown by handler to signal an error. |
---|
The end of a content model.
augmentations | Additional information that may include infoset augmentations. |
---|
XNIException | Thrown by handler to signal an error. |
---|
The end of a group for mixed or children content models.
augmentations | Additional information that may include infoset augmentations. |
---|
XNIException | Thrown by handler to signal an error. |
---|
The occurrence count for a child in a children content model or for the mixed content model group.
occurrence | The occurrence count for the last element or group. |
---|---|
augmentations | Additional information that may include infoset augmentations. |
XNIException | Thrown by handler to signal an error. |
---|
The appearance of "#PCDATA" within a group signifying a
mixed content model. This method will be the first called
following the content model's startGroup()
.
augmentations | Additional information that may include infoset augmentations. |
---|
XNIException | Thrown by handler to signal an error. |
---|
The separator between choices or sequences of a mixed or children content model.
separator | The type of children separator. |
---|---|
augmentations | Additional information that may include infoset augmentations. |
XNIException | Thrown by handler to signal an error. |
---|
The start of a content model. Depending on the type of the content model, specific methods may be called between the call to the startContentModel method and the call to the endContentModel method.
elementName | The name of the element. |
---|---|
augmentations | Additional information that may include infoset augmentations. |
XNIException | Thrown by handler to signal an error. |
---|
A start of either a mixed or children content model. A mixed
content model will immediately be followed by a call to the
pcdata()
method. A children content model will
contain additional groups and/or elements.
augmentations | Additional information that may include infoset augmentations. |
---|
XNIException | Thrown by handler to signal an error. |
---|