content
The content. Either an Element or a ContentModel.
Serializable
public final class ContentModel extends Object implements Serializable
See Annex H on page 556 of the SGML handbook for more information.
Modifier and Type | Field | Description |
---|---|---|
Object |
content |
The content.
|
ContentModel |
next |
The next content model (in a ',', '|' or '&' expression).
|
int |
type |
Type.
|
Constructor | Description |
---|---|
ContentModel() |
Creates
ContentModel |
ContentModel(int type,
Object content,
ContentModel next) |
Create a content model of a particular type.
|
ContentModel(int type,
ContentModel content) |
Create a content model of a particular type.
|
ContentModel(Element content) |
Create a content model for an element.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
empty() |
Return true if the content model could
match an empty input stream.
|
Element |
first() |
Return the element that must be next.
|
boolean |
first(Object token) |
Return true if the token could potentially be the
first token in the input stream.
|
void |
getElements(Vector<Element> elemVec) |
Update elemVec with the list of elements that are
part of the this contentModel.
|
String |
toString() |
Convert to a string.
|
ContentModel
content
- the elementtype
- the typecontent
- the contenttype
- the typecontent
- the contentnext
- the next content modeltrue
if the content model could
match an empty input streamelemVec
- the list of elementstoken
- the tokentrue
if the token could potentially be the first token
in the input stream