Open SiteSearch 4.1.1
Final

ORG.oclc.xml.parser
Class ContentModel

java.lang.Object
  |
  +--ORG.oclc.xml.parser.ContentModel

public class ContentModel
extends Object

This class represents the content model definition for a given XML element. The content model is defined in the element declaration in the Document Type Definition (DTD); for example, (a,(b|c)*,d). The content model is stored in an expression tree of Node objects for use by the XML parser during validation.


Field Summary
static byte ANY
           
static byte ELEMENTS
           
static byte EMPTY
          content type
 
Constructor Summary
ContentModel()
           
 
Method Summary
 byte getType()
           
 void save(Atom ns, XMLOutputStream o)
           
 Element toSchema()
           
 String toString()
          Retrieves a string representation of the content type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final byte EMPTY
content type

ANY

public static final byte ANY

ELEMENTS

public static final byte ELEMENTS
Constructor Detail

ContentModel

public ContentModel()
Method Detail

getType

public byte getType()

toString

public String toString()
Retrieves a string representation of the content type.
Returns:
a String.
Overrides:
toString in class Object

toSchema

public Element toSchema()

save

public void save(Atom ns,
                 XMLOutputStream o)
          throws IOException

Open SiteSearch 4.1.1
Final