All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.xml.parser.v2.ElementDecl

java.lang.Object
   |
   +----oracle.xml.parser.v2.XMLNode
           |
           +----oracle.xml.parser.v2.ElementDecl

public class ElementDecl
extends XMLNode
implements Serializable
This class represents an element declaration in a DTD.


Variable Index

 o ANY
Element content type - Children can be any element
 o ASTERISK
ContentModelParseTreeNode type - "*" node (has one children)
 o COMMA
ContentModelParseTreeNode type - "," node (has two children)
 o ELEMENT
ContentModelParseTreeNode type - 'leaf' node (has no children)
 o ELEMENTS
Element content type - Children can be elements as per Content Model
 o EMPTY
Element content type - No Children
 o MIXED
Element content type - Children can be PCDATA & elements as per Content Model
 o OR
ContentModelParseTreeNode type - "|" node (has two children)
 o PLUS
ContentModelParseTreeNode type - "+" node (has one children)
 o QMARK
ContentModelParseTreeNode type - "?" node (has one children)

Method Index

 o expectedElements(Element)
Returns vector of element names that can be appended to the element.
 o findAttrDecl(String)
Gets an attribute declaration object or null if not found
 o getAttrDecls()
Gets an enumeration of attribute declarations
 o getContentElements()
Returns Vector of elements that can be appended to this element
 o getContentType()
Returns content model of element
 o getParseTree()
Returns the root node of Content Model Parse Tree.
 o validateContent(Element)
Validates the content of a element node.

Variables

 o EMPTY
 public static final byte EMPTY
Element content type - No Children

 o ANY
 public static final byte ANY
Element content type - Children can be any element

 o MIXED
 public static final byte MIXED
Element content type - Children can be PCDATA & elements as per Content Model

 o ELEMENTS
 public static final byte ELEMENTS
Element content type - Children can be elements as per Content Model

 o ELEMENT
 public static final int ELEMENT
ContentModelParseTreeNode type - 'leaf' node (has no children)

 o OR
 public static final int OR
ContentModelParseTreeNode type - "|" node (has two children)

 o COMMA
 public static final int COMMA
ContentModelParseTreeNode type - "," node (has two children)

 o QMARK
 public static final int QMARK
ContentModelParseTreeNode type - "?" node (has one children)

 o ASTERISK
 public static final int ASTERISK
ContentModelParseTreeNode type - "*" node (has one children)

 o PLUS
 public static final int PLUS
ContentModelParseTreeNode type - "+" node (has one children)

Methods

 o validateContent
 public boolean validateContent(Element e)
Validates the content of a element node.

Returns:
True if valid, else false
 o expectedElements
 public Vector expectedElements(Element e)
Returns vector of element names that can be appended to the element.

Parameters:
e - Element
Returns:
Vector of names
 o getAttrDecls
 public NamedNodeMap getAttrDecls()
Gets an enumeration of attribute declarations

Returns:
An enumeration of attribute declarations
 o findAttrDecl
 public final AttrDecl findAttrDecl(String name)
Gets an attribute declaration object or null if not found

Parameters:
name - Attribute declaration to find
Returns:
The AttrDecl object, or null, if it was not found
 o getContentType
 public int getContentType()
Returns content model of element

Returns:
The type of the element declaration.
 o getContentElements
 public final Vector getContentElements()
Returns Vector of elements that can be appended to this element

Returns:
The Vector containing the element names.
 o getParseTree
 public final Node getParseTree()
Returns the root node of Content Model Parse Tree. Node.getFirstChild() and Node.getLastChild() return the the parse tree branches. Node.getNodeType() and Node.getNodeName() return the the parse tree node type and name.

Returns:
The Node containing the Content Model parse tree root node.

All Packages  Class Hierarchy  This Package  Previous  Next  Index