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 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 content)
Create a content model for an element.
|
ContentModel(int type,
ContentModel content)
Create a content model of a particular type.
|
ContentModel(int type,
Object content,
ContentModel next)
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 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.
|
public int type
public Object content
public ContentModel next
public ContentModel()
public ContentModel(Element content)
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(Object token)
public Element first()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.