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 |
EMPTY
public static final byte EMPTY
- content type
ANY
public static final byte ANY
ELEMENTS
public static final byte ELEMENTS
ContentModel
public ContentModel()
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