Fields Summary |
---|
public static final short | SEPARATOR_CHOICEA 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)*>
|
public static final short | SEPARATOR_SEQUENCEA 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)>
|
public static final short | OCCURS_ZERO_OR_ONEThis 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?)>
|
public static final short | OCCURS_ZERO_OR_MOREThis 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)*>
|
public static final short | OCCURS_ONE_OR_MOREThis 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+)>
|
Methods Summary |
---|
public void | any(Augmentations augmentations)A content model of ANY.
|
public void | element(java.lang.String elementName, Augmentations augmentations)A referenced element in a mixed or children content model.
|
public void | empty(Augmentations augmentations)A content model of EMPTY.
|
public void | endContentModel(Augmentations augmentations)The end of a content model.
|
public void | endGroup(Augmentations augmentations)The end of a group for mixed or children content models.
|
public org.apache.xerces.xni.parser.XMLDTDContentModelSource | getDTDContentModelSource()
|
public void | occurrence(short occurrence, Augmentations augmentations)The occurrence count for a child in a children content model or
for the mixed content model group.
|
public void | pcdata(Augmentations augmentations)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() .
|
public void | separator(short separator, Augmentations augmentations)The separator between choices or sequences of a mixed or children
content model.
|
public void | setDTDContentModelSource(org.apache.xerces.xni.parser.XMLDTDContentModelSource source)
|
public void | startContentModel(java.lang.String elementName, Augmentations augmentations)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.
|
public void | startGroup(Augmentations augmentations)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.
|