ElementDecl - Oracle 9i

Syntax

All Implemented Interfaces

java.lang.Cloneable, org.w3c.dom.Node, java.io.Serializable, oracle.xml.parser.v2.XMLConstants

Description
This class represents an element declaration in a DTD.

All Implemented Interfaces

All Implemented Interfaces

All Implemented Interfaces

All Implemented Interfaces

All Implemented Interfaces

Fields
ANY

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

ASTERISK

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

COMMA

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

ELEMENT

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

ELEMENTS

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

EMPTY

public static final byte EMPTY Element content type - No Children

MIXED

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

OR

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

PLUS

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

QMARK

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

Methods
expectedElements(Element)

public java.util.Vector expectedElements(org.w3c.dom.Element e) Returns vector of element names that can be appended to the element.

Parameters
e - Element

Returns
Vector of names

findAttrDecl(String)

public final AttrDecl findAttrDecl(java.lang.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

getAttrDecls()

public org.w3c.dom.NamedNodeMap getAttrDecls()

Gets an enumeration of attribute declarations

Returns
An enumeration of attribute declarations

getContentElements()

public final java.util.Vector getContentElements()

Returns Vector of elements that can be appended to this element

Returns
The Vector containing the element names.

getContentType()

public int getContentType() Returns content model of element

Returns
The type of the element declaration.

getParseTree()

Returns

The Node containing the Content Model parse tree root node.

validateContent(Element)

public boolean validateContent(org.w3c.dom.Element e) Validates the content of a element node.

Returns
True if valid, else false


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics