javax.swing.text.html.parser
Class ContentModel

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.text.html.parser.ContentModel
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public final class ContentModel
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Serializable sample code for java.io.Serializable definition code for java.io.Serializable

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.

See Also:
Serialized Form

Field Summary
 Object sample code for java.lang.Object definition code for java.lang.Object content sample code for javax.swing.text.html.parser.ContentModel.content definition code for javax.swing.text.html.parser.ContentModel.content
          The content.
 ContentModel sample code for javax.swing.text.html.parser.ContentModel definition code for javax.swing.text.html.parser.ContentModel next sample code for javax.swing.text.html.parser.ContentModel.next definition code for javax.swing.text.html.parser.ContentModel.next
          The next content model (in a ',', '|' or '&' expression).
 int type sample code for javax.swing.text.html.parser.ContentModel.type definition code for javax.swing.text.html.parser.ContentModel.type
          Type.
 
Constructor Summary
ContentModel sample code for javax.swing.text.html.parser.ContentModel.ContentModel() definition code for javax.swing.text.html.parser.ContentModel.ContentModel() ()
           
ContentModel sample code for javax.swing.text.html.parser.ContentModel.ContentModel(javax.swing.text.html.parser.Element) definition code for javax.swing.text.html.parser.ContentModel.ContentModel(javax.swing.text.html.parser.Element) (Element sample code for javax.swing.text.html.parser.Element definition code for javax.swing.text.html.parser.Element  content)
          Create a content model for an element.
ContentModel sample code for javax.swing.text.html.parser.ContentModel.ContentModel(int, javax.swing.text.html.parser.ContentModel) definition code for javax.swing.text.html.parser.ContentModel.ContentModel(int, javax.swing.text.html.parser.ContentModel) (int type, ContentModel sample code for javax.swing.text.html.parser.ContentModel definition code for javax.swing.text.html.parser.ContentModel  content)
          Create a content model of a particular type.
ContentModel sample code for javax.swing.text.html.parser.ContentModel.ContentModel(int, java.lang.Object, javax.swing.text.html.parser.ContentModel) definition code for javax.swing.text.html.parser.ContentModel.ContentModel(int, java.lang.Object, javax.swing.text.html.parser.ContentModel) (int type, Object sample code for java.lang.Object definition code for java.lang.Object  content, ContentModel sample code for javax.swing.text.html.parser.ContentModel definition code for javax.swing.text.html.parser.ContentModel  next)
          Create a content model of a particular type.
 
Method Summary
 boolean empty sample code for javax.swing.text.html.parser.ContentModel.empty() definition code for javax.swing.text.html.parser.ContentModel.empty() ()
          Return true if the content model could match an empty input stream.
 Element sample code for javax.swing.text.html.parser.Element definition code for javax.swing.text.html.parser.Element first sample code for javax.swing.text.html.parser.ContentModel.first() definition code for javax.swing.text.html.parser.ContentModel.first() ()
          Return the element that must be next.
 boolean first sample code for javax.swing.text.html.parser.ContentModel.first(java.lang.Object) definition code for javax.swing.text.html.parser.ContentModel.first(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  token)
          Return true if the token could potentially be the first token in the input stream.
 void getElements sample code for javax.swing.text.html.parser.ContentModel.getElements(java.util.Vector) definition code for javax.swing.text.html.parser.ContentModel.getElements(java.util.Vector) (Vector sample code for java.util.Vector definition code for java.util.Vector <Element sample code for javax.swing.text.html.parser.Element definition code for javax.swing.text.html.parser.Element > elemVec)
          Update elemVec with the list of elements that are part of the this contentModel.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.swing.text.html.parser.ContentModel.toString() definition code for javax.swing.text.html.parser.ContentModel.toString() ()
          Convert to a string.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

type sample code for javax.swing.text.html.parser.ContentModel.type

public int type
Type. Either '*', '?', '+', ',', '|', '&'.


content sample code for javax.swing.text.html.parser.ContentModel.content

public Object sample code for java.lang.Object definition code for java.lang.Object  content
The content. Either an Element or a ContentModel.


next sample code for javax.swing.text.html.parser.ContentModel.next

public ContentModel sample code for javax.swing.text.html.parser.ContentModel definition code for javax.swing.text.html.parser.ContentModel  next
The next content model (in a ',', '|' or '&' expression).

Constructor Detail

ContentModel sample code for javax.swing.text.html.parser.ContentModel() definition code for javax.swing.text.html.parser.ContentModel()

public ContentModel()

ContentModel sample code for javax.swing.text.html.parser.ContentModel(javax.swing.text.html.parser.Element) definition code for javax.swing.text.html.parser.ContentModel(javax.swing.text.html.parser.Element)

public ContentModel(Element sample code for javax.swing.text.html.parser.Element definition code for javax.swing.text.html.parser.Element  content)
Create a content model for an element.


ContentModel sample code for javax.swing.text.html.parser.ContentModel(int, javax.swing.text.html.parser.ContentModel) definition code for javax.swing.text.html.parser.ContentModel(int, javax.swing.text.html.parser.ContentModel)

public ContentModel(int type,
                    ContentModel sample code for javax.swing.text.html.parser.ContentModel definition code for javax.swing.text.html.parser.ContentModel  content)
Create a content model of a particular type.


ContentModel sample code for javax.swing.text.html.parser.ContentModel(int, java.lang.Object, javax.swing.text.html.parser.ContentModel) definition code for javax.swing.text.html.parser.ContentModel(int, java.lang.Object, javax.swing.text.html.parser.ContentModel)

public ContentModel(int type,
                    Object sample code for java.lang.Object definition code for java.lang.Object  content,
                    ContentModel sample code for javax.swing.text.html.parser.ContentModel definition code for javax.swing.text.html.parser.ContentModel  next)
Create a content model of a particular type.

Method Detail

empty sample code for javax.swing.text.html.parser.ContentModel.empty() definition code for javax.swing.text.html.parser.ContentModel.empty()

public boolean empty()
Return true if the content model could match an empty input stream.


getElements sample code for javax.swing.text.html.parser.ContentModel.getElements(java.util.Vector<javax.swing.text.html.parser.Element>) definition code for javax.swing.text.html.parser.ContentModel.getElements(java.util.Vector<javax.swing.text.html.parser.Element>)

public void getElements(Vector sample code for java.util.Vector definition code for java.util.Vector <Element sample code for javax.swing.text.html.parser.Element definition code for javax.swing.text.html.parser.Element > elemVec)
Update elemVec with the list of elements that are part of the this contentModel.


first sample code for javax.swing.text.html.parser.ContentModel.first(java.lang.Object) definition code for javax.swing.text.html.parser.ContentModel.first(java.lang.Object)

public boolean first(Object sample code for java.lang.Object definition code for java.lang.Object  token)
Return true if the token could potentially be the first token in the input stream.


first sample code for javax.swing.text.html.parser.ContentModel.first() definition code for javax.swing.text.html.parser.ContentModel.first()

public Element sample code for javax.swing.text.html.parser.Element definition code for javax.swing.text.html.parser.Element  first()
Return the element that must be next.


toString sample code for javax.swing.text.html.parser.ContentModel.toString() definition code for javax.swing.text.html.parser.ContentModel.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Convert to a string.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of the object.