See Annex H on page 556 of the SGML handbook for more information.
| Modifier and Type | Field and Description |
|---|---|
| public Object | content
The content. |
| public ContentModel | next
The next content model (in a ',', '|' or '&' expression). |
| public int | type
Type. |
| private boolean[] | |
| private boolean[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ContentModel(int
the type type, ContentModel the content content)Create a content model of a particular type. |
| public | ContentModel(int
the type type, Object the content content, ContentModel the next content model next)Create a content model of a particular type. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the content model could
match an empty input streamReturn true if the content model could match an empty input stream. |
| public boolean | |
| public Element | |
| public void | getElements(Vector<Element>
the list of elements elemVec)Update elemVec with the list of elements that are part of the this contentModel. |
| public String | Returns: the string representation of thisContentModelOverrides java. Convert to a string. |
| content | back to summary |
|---|---|
| public Object content The content. Either an Element or a ContentModel. | |
| next | back to summary |
|---|---|
| public ContentModel next The next content model (in a ',', '|' or '&' expression). | |
| type | back to summary |
|---|---|
| public int type Type. Either '*', '?', '+', ',', '|', '&'. | |
| val | back to summary |
|---|---|
| private boolean[] val | |
| valSet | back to summary |
|---|---|
| private boolean[] valSet | |
| ContentModel | back to summary |
|---|---|
| public ContentModel() Creates | |
| ContentModel | back to summary |
|---|---|
| public ContentModel(Element content) Create a content model for an element.
| |
| ContentModel | back to summary |
|---|---|
| public ContentModel(int type, ContentModel content) Create a content model of a particular type.
| |
| ContentModel | back to summary |
|---|---|
| public ContentModel(int type, Object content, ContentModel next) Create a content model of a particular type.
| |
| empty | back to summary |
|---|---|
| public boolean empty() Return true if the content model could match an empty input stream.
| |
| first | back to summary |
|---|---|
| public boolean first(Object token) Return true if the token could potentially be the first token in the input stream.
| |
| first | back to summary |
|---|---|
| public Element first() Return the element that must be next.
| |
| getElements | back to summary |
|---|---|
| public void getElements(Vector<Element> elemVec) Update elemVec with the list of elements that are part of the this contentModel. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Convert to a string.
| |