| org.apache.xerces.xni.XMLDTDContentModelHandler
All known Subclasses: org.apache.xerces.impl.xs.opti.DefaultXMLDocumentHandler, org.apache.xerces.parsers.AbstractXMLDocumentParser, org.apache.xerces.impl.dtd.DTDGrammar, org.apache.xerces.parsers.DTDParser,
XMLDTDContentModelHandler | public interface XMLDTDContentModelHandler (Code) | | 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.
See Also: XMLDTDHandler author: Andy Clark, IBM version: $Id: XMLDTDContentModelHandler.java 447247 2006-09-18 05:23:52Z mrglavas $ |
Field Summary | |
final public static short | OCCURS_ONE_OR_MORE This occurrence count limits the element, choice, or sequence in a
children content model to one or more. | final public static short | OCCURS_ZERO_OR_MORE This occurrence count limits the element, choice, or sequence in a
children content model to zero or more. | final public static short | OCCURS_ZERO_OR_ONE This occurrence count limits the element, choice, or sequence in a
children content model to zero or one. | final public static short | SEPARATOR_CHOICE A choice separator for children and mixed content models. | final public static short | SEPARATOR_SEQUENCE A sequence separator for children content models. |
OCCURS_ZERO_OR_MORE | final public static short OCCURS_ZERO_OR_MORE(Code) | | 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)*>
See Also: XMLDTDContentModelHandler.OCCURS_ZERO_OR_ONE See Also: XMLDTDContentModelHandler.OCCURS_ONE_OR_MORE |
SEPARATOR_CHOICE | final public static short SEPARATOR_CHOICE(Code) | | 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)*>
See Also: XMLDTDContentModelHandler.SEPARATOR_SEQUENCE |
SEPARATOR_SEQUENCE | final public static short SEPARATOR_SEQUENCE(Code) | | 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)>
See Also: XMLDTDContentModelHandler.SEPARATOR_CHOICE |
element | public void element(String elementName, Augmentations augmentations) throws XNIException(Code) | | A referenced element in a mixed or children content model.
Parameters: elementName - The name of the referenced element. Parameters: augmentations - Additional information that may include infosetaugmentations. throws: XNIException - Thrown by handler to signal an error. |
endContentModel | public void endContentModel(Augmentations augmentations) throws XNIException(Code) | | The end of a content model.
Parameters: augmentations - Additional information that may include infosetaugmentations. throws: XNIException - Thrown by handler to signal an error. |
endGroup | public void endGroup(Augmentations augmentations) throws XNIException(Code) | | The end of a group for mixed or children content models.
Parameters: augmentations - Additional information that may include infosetaugmentations. throws: XNIException - Thrown by handler to signal an error. |
pcdata | public void pcdata(Augmentations augmentations) throws XNIException(Code) | | 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() .
Parameters: augmentations - Additional information that may include infosetaugmentations. throws: XNIException - Thrown by handler to signal an error. See Also: XMLDTDContentModelHandler.startGroup |
startContentModel | public void startContentModel(String elementName, Augmentations augmentations) throws XNIException(Code) | | 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.
Parameters: elementName - The name of the element. Parameters: augmentations - Additional information that may include infosetaugmentations. throws: XNIException - Thrown by handler to signal an error. |
startGroup | public void startGroup(Augmentations augmentations) throws XNIException(Code) | | 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.
Parameters: augmentations - Additional information that may include infosetaugmentations. throws: XNIException - Thrown by handler to signal an error. See Also: XMLDTDContentModelHandler.any See Also: XMLDTDContentModelHandler.empty |
|
|