Home » openjdk-7 » javax » swing » text » html » parser » [javadoc | source]
public final class: ContentModel [javadoc | source]

All Implemented Interfaces:

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
public  int type    Type. Either '*', '?', '+', ',', '|', '&'. 
public  Object content    The content. Either an Element or a ContentModel. 
public  ContentModel next    The next content model (in a ',', '|' or '&' expression). 
 public ContentModel() 
 public ContentModel(Element content) 
    Create a content model for an element.
 public ContentModel(int type,
    ContentModel content) 
    Create a content model of a particular type.
 public ContentModel(int type,
    Object content,
    ContentModel next) 
    Create a content model of a particular type.
Method from javax.swing.text.html.parser.ContentModel Summary:
empty,   first,   first,   getElements,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.parser.ContentModel Detail:
 public boolean empty() 
    Return true if the content model could match an empty input stream.
 public Element first() 
    Return the element that must be next.
 public boolean first(Object token) 
    Return true if the token could potentially be the first token in the input stream.
 public  void getElements(Vector<Element> elemVec) 
    Update elemVec with the list of elements that are part of the this contentModel.
 public String toString() 
    Convert to a string.