XMLDTDHandler
Modifier and Type | Field and Description |
---|---|
public static final short | OCCURS_ONE_OR_MORE
This occurrence count limits the element, choice, or sequence in a children content model to one or more. |
public static final short | OCCURS_ZERO_OR_MORE
This occurrence count limits the element, choice, or sequence in a children content model to zero or more. |
public static final short | OCCURS_ZERO_OR_ONE
This occurrence count limits the element, choice, or sequence in a children content model to zero or one. |
public static final short | SEPARATOR_CHOICE
A choice separator for children and mixed content models. |
public static final short | SEPARATOR_SEQUENCE
A sequence separator for children content models. |
Modifier and Type | Method and Description |
---|---|
public void | any(Augmentations
Additional information that may include infoset
augmentations. augmentations)A content model of ANY. |
public void | element(String
The name of the referenced element. elementName, Augmentations Additional information that may include infoset
augmentations. augmentations)A referenced element in a mixed or children content model. |
public void | empty(Augmentations
Additional information that may include infoset
augmentations. augmentations)A content model of EMPTY. |
public void | endContentModel(Augmentations
Additional information that may include infoset
augmentations. augmentations)The end of a content model. |
public void | endGroup(Augmentations
Additional information that may include infoset
augmentations. augmentations)The end of a group for mixed or children content models. |
public XMLDTDContentModelSource | |
public void | occurrence(short
The occurrence count for the last element
or group. occurrence, Augmentations Additional information that may include infoset
augmentations. augmentations)The occurrence count for a child in a children content model or for the mixed content model group. |
public void | pcdata(Augmentations
Additional information that may include infoset
augmentations. augmentations)The appearance of "#PCDATA" within a group signifying a mixed content model. |
public void | separator(short
The type of children separator. separator, Augmentations Additional information that may include infoset
augmentations. augmentations)The separator between choices or sequences of a mixed or children content model. |
public void | |
public void | startContentModel(String
The name of the element. elementName, Augmentations Additional information that may include infoset
augmentations. augmentations)The start of a content model. |
public void | startGroup(Augmentations
Additional information that may include infoset
augmentations. augmentations)A start of either a mixed or children content model. |
OCCURS_ONE_OR_MORE | back to summary |
---|---|
public static final short OCCURS_ONE_OR_MORE 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+)>
|
OCCURS_ZERO_OR_MORE | back to summary |
---|---|
public static final short OCCURS_ZERO_OR_MORE 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)*>
|
OCCURS_ZERO_OR_ONE | back to summary |
---|---|
public static final short OCCURS_ZERO_OR_ONE 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?)>
|
SEPARATOR_CHOICE | back to summary |
---|---|
public static final short SEPARATOR_CHOICE 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)*>
|
SEPARATOR_SEQUENCE | back to summary |
---|---|
public static final short SEPARATOR_SEQUENCE 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)>
|
any | back to summary |
---|---|
public void any(Augmentations augmentations) throws XNIException A content model of ANY.
|
element | back to summary |
---|---|
public void element(String elementName, Augmentations augmentations) throws XNIException A referenced element in a mixed or children content model.
|
empty | back to summary |
---|---|
public void empty(Augmentations augmentations) throws XNIException A content model of EMPTY.
|
endContentModel | back to summary |
---|---|
public void endContentModel(Augmentations augmentations) throws XNIException The end of a content model.
|
endGroup | back to summary |
---|---|
public void endGroup(Augmentations augmentations) throws XNIException The end of a group for mixed or children content models.
|
getDTDContentModelSource | back to summary |
---|---|
public XMLDTDContentModelSource getDTDContentModelSource() |
occurrence | back to summary |
---|---|
public void occurrence(short occurrence, Augmentations augmentations) throws XNIException The occurrence count for a child in a children content model or for the mixed content model group.
|
pcdata | back to summary |
---|---|
public void pcdata(Augmentations augmentations) throws XNIException The appearance of "#PCDATA" within a group signifying a
mixed content model. This method will be the first called
following the content model's
|
separator | back to summary |
---|---|
public void separator(short separator, Augmentations augmentations) throws XNIException The separator between choices or sequences of a mixed or children content model.
|
setDTDContentModelSource | back to summary |
---|---|
public void setDTDContentModelSource(XMLDTDContentModelSource source) |
startContentModel | back to summary |
---|---|
public void startContentModel(String elementName, Augmentations augmentations) throws XNIException 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.
|
startGroup | back to summary |
---|---|
public void startGroup(Augmentations augmentations) throws XNIException A start of either a mixed or children content model. A mixed
content model will immediately be followed by a call to the
|