content
public Object 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 |
Create a content model of a particular type. |
ContentModel |
Create a content model of a particular type. |
ContentModel |
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 |
Return true if the token could potentially be the first token in the input stream. |
void |
getElements |
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()
public String toString()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/text/html/parser/ContentModel.html