org.apache.xerces.xni
public interface XMLDTDContentModelHandler
Version: $Id: XMLDTDContentModelHandler.java,v 1.6 2004/02/24 23:15:54 mrglavas Exp $
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(Augmentations augmentations)
A content model of ANY.
|
void | element(String elementName, Augmentations augmentations)
A referenced element in a mixed or children content model.
|
void | empty(Augmentations augmentations)
A content model of EMPTY.
|
void | endContentModel(Augmentations augmentations)
The end of a content model.
|
void | endGroup(Augmentations augmentations)
The end of a group for mixed or children content models.
|
XMLDTDContentModelSource | getDTDContentModelSource() |
void | occurrence(short occurrence, Augmentations augmentations)
The occurrence count for a child in a children content model or
for the mixed content model group.
|
void | pcdata(Augmentations augmentations)
The appearance of "#PCDATA" within a group signifying a
mixed content model. |
void | separator(short separator, Augmentations augmentations)
The separator between choices or sequences of a mixed or children
content model.
|
void | setDTDContentModelSource(XMLDTDContentModelSource source) |
void | startContentModel(String elementName, Augmentations augmentations)
The start of a content model. |
void | startGroup(Augmentations augmentations)
A start of either a mixed or children content model. |
For example:
<!ELEMENT elem (foo+)>
See Also: OCCURS_ZERO_OR_ONE OCCURS_ZERO_OR_MORE
For example:
<!ELEMENT elem (foo*)> <!ELEMENT elem (#PCDATA|foo|bar)*>
See Also: OCCURS_ZERO_OR_ONE OCCURS_ONE_OR_MORE
For example:
<!ELEMENT elem (foo?)>
See Also: OCCURS_ZERO_OR_MORE OCCURS_ONE_OR_MORE
For example:
<!ELEMENT elem (foo|bar)> <!ELEMENT elem (foo|bar+)> <!ELEMENT elem (foo|bar|baz)> <!ELEMENT elem (#PCDATA|foo|bar)*>
See Also: SEPARATOR_SEQUENCE
<!ELEMENT elem (foo,bar)> <!ELEMENT elem (foo,bar*)> <!ELEMENT elem (foo,bar,baz)>
See Also: SEPARATOR_CHOICE
Parameters: augmentations Additional information that may include infoset augmentations.
Throws: XNIException Thrown by handler to signal an error.
See Also: XMLDTDContentModelHandler XMLDTDContentModelHandler
Parameters: elementName The name of the referenced element. augmentations Additional information that may include infoset augmentations.
Throws: XNIException Thrown by handler to signal an error.
Parameters: augmentations Additional information that may include infoset augmentations.
Throws: XNIException Thrown by handler to signal an error.
See Also: XMLDTDContentModelHandler XMLDTDContentModelHandler
Parameters: augmentations Additional information that may include infoset augmentations.
Throws: XNIException Thrown by handler to signal an error.
Parameters: augmentations Additional information that may include infoset augmentations.
Throws: XNIException Thrown by handler to signal an error.
Parameters: occurrence The occurrence count for the last element or group. augmentations Additional information that may include infoset augmentations.
Throws: XNIException Thrown by handler to signal an error.
See Also: OCCURS_ZERO_OR_ONE OCCURS_ZERO_OR_MORE OCCURS_ONE_OR_MORE
startGroup()
.
Parameters: augmentations Additional information that may include infoset augmentations.
Throws: XNIException Thrown by handler to signal an error.
See Also: XMLDTDContentModelHandler
Parameters: separator The type of children separator. augmentations Additional information that may include infoset augmentations.
Throws: XNIException Thrown by handler to signal an error.
See Also: SEPARATOR_CHOICE SEPARATOR_SEQUENCE
Parameters: elementName The name of the element. augmentations Additional information that may include infoset augmentations.
Throws: XNIException Thrown by handler to signal an error.
pcdata()
method. A children content model will
contain additional groups and/or elements.
Parameters: augmentations Additional information that may include infoset augmentations.
Throws: XNIException Thrown by handler to signal an error.
See Also: XMLDTDContentModelHandler XMLDTDContentModelHandler