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()
Creates
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()
ContentModel
public ContentModel(Element content)
content
- the elementpublic ContentModel(int type, ContentModel content)
type
- the typecontent
- the contentpublic ContentModel(int type, Object content, ContentModel next)
type
- the typecontent
- the contentnext
- the next content modelpublic boolean empty()
true
if the content model could
match an empty input streampublic void getElements(Vector<Element> elemVec)
elemVec
- the list of elementspublic boolean first(Object token)
token
- the tokentrue
if the token could potentially be the first token
in the input streampublic 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, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait