| org.ozoneDB.xml.dom.NodeImpl org.ozoneDB.xml.dom.ElementDeclImpl
Method Summary | |
final public Object | clone() | final public Node | cloneNode(boolean deep) | public synchronized boolean | equals(Object other) | public String | getName() | public short | getNodeType() | public boolean | isAny() Returns true if element may contain any child elements and character data
in any order. | public boolean | isEmpty() Returns true if element is empty. | public boolean | isMixed() Returns true if element contains mixed contents. | public boolean | requiresClosingTag() Returns true if the closing tag is optional. | public boolean | requiresOpeningTag() Returns true if the opening tag is optional. |
serialVersionUID | final static long serialVersionUID(Code) | | |
ElementDeclImpl | ElementDeclImpl(DocumentImpl owner, String name, String definition)(Code) | | Constructor requires owner document, element name and its definition.
Parameters: owner - The owner document Parameters: name - The element name Parameters: definition - The element definition |
ElementDeclImpl | ElementDeclImpl(DocumentImpl owner, String name, String definition, boolean optionalOpen, boolean optionalClose)(Code) | | Constructor requires owner document, element name and its definition.
The flags for optional opening and closing tag are supported only for
HTML documents.
Parameters: owner - The owner document Parameters: name - The element name Parameters: definition - The element definition Parameters: optionalOpen - The opening tag is optional Parameters: optionalClose - The closing tag is optional |
cloneNode | final public Node cloneNode(boolean deep)(Code) | | |
equals | public synchronized boolean equals(Object other)(Code) | | |
getNodeType | public short getNodeType()(Code) | | |
isAny | public boolean isAny()(Code) | | Returns true if element may contain any child elements and character data
in any order.
True if element supports any contents |
isEmpty | public boolean isEmpty()(Code) | | Returns true if element is empty. An empty element cannot contain any
children and must be specified with an empty tag, or an opening tag
immediately followed by a closing tag.
True if element is empty |
isMixed | public boolean isMixed()(Code) | | Returns true if element contains mixed contents. Mixed contents includes
both elements and character data in any particular order. This option
implies that both
ElementDeclImpl.isEmpty and
ElementDeclImpl.isAny return false.
If all three are false, then contents is subject to exact order.
True if element contains mixed contents |
requiresClosingTag | public boolean requiresClosingTag()(Code) | | Returns true if the closing tag is optional. Even if the closing tag is
missing from the document for this element, the document is still valid.
This option only relates to HTML document.
True if closing tag is optional |
requiresOpeningTag | public boolean requiresOpeningTag()(Code) | | Returns true if the opening tag is optional. Even if the opening tag is
missing from the document for this element, the document is still valid.
This option only relates to HTML document, and implies that
ElementDeclImpl.requiresClosingTag is also true.
True if opening tag is optional |
|
|