| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.html.parser.ContentModel
public final class ContentModel
A representation of a content model. A content model is basically a restricted BNF expression. It is restricted in the sense that it must be deterministic. This means that you don't have to represent it as a finite state automata.
See Annex H on page 556 of the SGML handbook for more information.
| Field Summary | |
|---|---|
|  Object | contentThe content. | 
|  ContentModel | nextThe next content model (in a ',', '|' or '&' expression). | 
|  int | typeType. | 
| Constructor Summary | |
|---|---|
| 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. | |
| Method Summary | |
|---|---|
|  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. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public int type
public Object content
public ContentModel next
| Constructor Detail | 
|---|
public ContentModel()
public ContentModel(Element content)
public ContentModel(int type,
                    ContentModel content)
public ContentModel(int type,
                    Object content,
                    ContentModel next)
| Method Detail | 
|---|
public boolean empty()
public void getElements(Vector<Element> elemVec)
public boolean first(Object token)
public Element first()
public String toString()
toString in class Object| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.