public final class ContentModel extends Objectimplements Serializable
See Annex H on page 556 of the SGML handbook for more information.
| Modifier and Type | Field and Description |
|---|---|
Object |
content
The content.
|
ContentModel |
next
The next content model (in a ',', '|' or '&' expression).
|
int |
type
Type.
|
| Constructor and Description |
|---|
ContentModel()
|
ContentModel(Element
Create a content model for an element.
|
ContentModel(int type, ContentModel
Create a content model of a particular type.
|
ContentModel(int type, Object
Create a content model of a particular type.
|
| Modifier and Type | Method and 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
Return true if the token could potentially be the first token in the input stream.
|
void |
getElements(Vector
Update elemVec with the list of elements that are part of the this contentModel.
|
String |
toString()
Convert to a string.
|
public int type
public Objectcontent
public ContentModelnext
public ContentModel()
public ContentModel(Elementcontent)
public ContentModel(int type,
ContentModel content)
public ContentModel(int type,
Object content,
ContentModel next)
public boolean empty()
public void getElements(Vector<Element > elemVec)
public boolean first(Objecttoken)
public Elementfirst()