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.
-
ANY
- Element content type - Children can be any element
-
ASTERISK
- ContentModelParseTreeNode type - "*" node (has one children)
-
COMMA
- ContentModelParseTreeNode type - "," node (has two children)
-
ELEMENT
- ContentModelParseTreeNode type - 'leaf' node (has no children)
-
ELEMENTS
- Element content type - Children can be elements as per Content Model
-
EMPTY
- Element content type - No Children
-
MIXED
- Element content type - Children can be PCDATA & elements as per Content Model
-
OR
- ContentModelParseTreeNode type - "|" node (has two children)
-
PLUS
- ContentModelParseTreeNode type - "+" node (has one children)
-
QMARK
- ContentModelParseTreeNode type - "?" node (has one children)
-
expectedElements(Element)
- Returns vector of element names that can be appended to the element.
-
findAttrDecl(String)
- Gets an attribute declaration object or null if not found
-
getAttrDecls()
-
Gets an enumeration of attribute declarations
-
getContentElements()
- Returns Vector of elements that can be appended to this element
-
getContentType()
- Returns content model of element
-
getParseTree()
- Returns the root node of Content Model Parse Tree.
-
validateContent(Element)
- Validates the content of a element node.
EMPTY
public static final byte EMPTY
- Element content type - No Children
ANY
public static final byte ANY
- Element content type - Children can be any element
MIXED
public static final byte MIXED
- Element content type - Children can be PCDATA & elements as per Content Model
ELEMENTS
public static final byte ELEMENTS
- Element content type - Children can be elements as per Content Model
ELEMENT
public static final int ELEMENT
- ContentModelParseTreeNode type - 'leaf' node (has no children)
OR
public static final int OR
- ContentModelParseTreeNode type - "|" node (has two children)
COMMA
public static final int COMMA
- ContentModelParseTreeNode type - "," node (has two children)
QMARK
public static final int QMARK
- ContentModelParseTreeNode type - "?" node (has one children)
ASTERISK
public static final int ASTERISK
- ContentModelParseTreeNode type - "*" node (has one children)
PLUS
public static final int PLUS
- ContentModelParseTreeNode type - "+" node (has one children)
validateContent
public boolean validateContent(Element e)
- Validates the content of a element node.
- Returns:
- True if valid, else false
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
getAttrDecls
public NamedNodeMap getAttrDecls()
- Gets an enumeration of attribute declarations
- Returns:
- An enumeration of attribute declarations
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
getContentType
public int getContentType()
- Returns content model of element
- Returns:
- The
type
of the element declaration.
getContentElements
public final Vector getContentElements()
- Returns Vector of elements that can be appended to this element
- Returns:
- The
Vector
containing the element names.
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