XMLDTDContentModelFilter
public interface XMLDTDContentModelHandler
XMLDTDHandler
Modifier and Type | Field | Description |
---|---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
void |
any(Augmentations augmentations) |
A content model of ANY.
|
void |
element(java.lang.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(java.lang.String elementName,
Augmentations augmentations) |
The start of a content model.
|
void |
startGroup(Augmentations augmentations) |
A start of either a mixed or children content model.
|
static final short SEPARATOR_CHOICE
For example:
<!ELEMENT elem (foo|bar)> <!ELEMENT elem (foo|bar+)> <!ELEMENT elem (foo|bar|baz)> <!ELEMENT elem (#PCDATA|foo|bar)*>
SEPARATOR_SEQUENCE
,
Constant Field Valuesstatic final short SEPARATOR_SEQUENCE
<!ELEMENT elem (foo,bar)> <!ELEMENT elem (foo,bar*)> <!ELEMENT elem (foo,bar,baz)>
SEPARATOR_CHOICE
,
Constant Field Valuesstatic final short OCCURS_ZERO_OR_ONE
For example:
<!ELEMENT elem (foo?)>
static final short OCCURS_ZERO_OR_MORE
For example:
<!ELEMENT elem (foo*)> <!ELEMENT elem (#PCDATA|foo|bar)*>
static final short OCCURS_ONE_OR_MORE
For example:
<!ELEMENT elem (foo+)>
void startContentModel(java.lang.String elementName, Augmentations augmentations) throws XNIException
elementName
- The name of the element.augmentations
- Additional information that may include infoset
augmentations.XNIException
- Thrown by handler to signal an error.void any(Augmentations augmentations) throws XNIException
augmentations
- Additional information that may include infoset
augmentations.XNIException
- Thrown by handler to signal an error.empty(org.apache.xerces.xni.Augmentations)
,
startGroup(org.apache.xerces.xni.Augmentations)
void empty(Augmentations augmentations) throws XNIException
augmentations
- Additional information that may include infoset
augmentations.XNIException
- Thrown by handler to signal an error.any(org.apache.xerces.xni.Augmentations)
,
startGroup(org.apache.xerces.xni.Augmentations)
void startGroup(Augmentations augmentations) throws XNIException
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.any(org.apache.xerces.xni.Augmentations)
,
empty(org.apache.xerces.xni.Augmentations)
void pcdata(Augmentations augmentations) throws XNIException
startGroup()
.augmentations
- Additional information that may include infoset
augmentations.XNIException
- Thrown by handler to signal an error.startGroup(org.apache.xerces.xni.Augmentations)
void element(java.lang.String elementName, Augmentations augmentations) throws XNIException
elementName
- The name of the referenced element.augmentations
- Additional information that may include infoset
augmentations.XNIException
- Thrown by handler to signal an error.void separator(short separator, Augmentations augmentations) throws XNIException
separator
- The type of children separator.augmentations
- Additional information that may include infoset
augmentations.XNIException
- Thrown by handler to signal an error.SEPARATOR_CHOICE
,
SEPARATOR_SEQUENCE
void occurrence(short occurrence, Augmentations augmentations) throws XNIException
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.OCCURS_ZERO_OR_ONE
,
OCCURS_ZERO_OR_MORE
,
OCCURS_ONE_OR_MORE
void endGroup(Augmentations augmentations) throws XNIException
augmentations
- Additional information that may include infoset
augmentations.XNIException
- Thrown by handler to signal an error.void endContentModel(Augmentations augmentations) throws XNIException
augmentations
- Additional information that may include infoset
augmentations.XNIException
- Thrown by handler to signal an error.void setDTDContentModelSource(XMLDTDContentModelSource source)
XMLDTDContentModelSource getDTDContentModelSource()
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.