org.ozoneDB.xml.dom
Class ElementDeclImpl

java.lang.Object
  extended byorg.ozoneDB.OzoneObject
      extended byorg.ozoneDB.xml.dom.NodeImpl
          extended byorg.ozoneDB.xml.dom.ElementDeclImpl
All Implemented Interfaces:
ElementDeclProxy, java.io.Externalizable, org.w3c.dom.Node, NodeProxy, org.ozoneDB.OzoneCompatible, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote, java.io.Serializable

public class ElementDeclImpl
extends NodeImpl
implements ElementDeclProxy

Version:
$Revision: 1.2 $ $Date: 2003/11/20 23:18:42 $
Author:
Assaf Arkin
See Also:
Node, NodeImpl, Serialized Form

Field Summary
 
Fields inherited from class org.ozoneDB.xml.dom.NodeImpl
ATTLIST_DECL_NODE, ELEMENT_DECL_NODE, PARAM_ENTITY_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Method Summary
 java.lang.Object clone()
           
 org.w3c.dom.Node cloneNode(boolean deep)
           
 boolean equals(java.lang.Object other)
           
 java.lang.String getName()
           
 short getNodeType()
          Abstract method must be implemented by each node class.
 boolean isAny()
          Returns true if element may contain any child elements and character data in any order.
 boolean isEmpty()
          Returns true if element is empty.
 boolean isMixed()
          Returns true if element contains mixed contents.
 boolean requiresClosingTag()
          Returns true if the closing tag is optional.
 boolean requiresOpeningTag()
          Returns true if the opening tag is optional.
 
Methods inherited from class org.ozoneDB.xml.dom.NodeImpl
appendChild, castNewChild, castOldChild, cloneInto, getAttributes, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, init, insertBefore, isReadOnly, isSupported, normalize, notifyIterators, readExternal, removeChild, replaceChild, setNextSibling, setNodeName, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setReadOnly, supports, writeExternal
 
Methods inherited from class org.ozoneDB.OzoneObject
container, database, deleteRecursive, getHandle, getObjectID, handle, hashCode, onActivate, onCreate, onDelete, onPassivate, requireWriteLocking, self, setContainer, toString, toXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 
Methods inherited from interface org.ozoneDB.xml.dom.NodeProxy
cloneInto, getChild, getChildCount, getChildNodes, init, isReadOnly, setNextSibling, setNodeName, setOwnerDocument, setParentNode, setPreviousSibling, setReadOnly
 
Methods inherited from interface org.w3c.dom.Node
appendChild, getAttributes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Method Detail

getNodeType

public short getNodeType()
Description copied from class: NodeImpl
Abstract method must be implemented by each node class.

Specified by:
getNodeType in interface org.w3c.dom.Node
Specified by:
getNodeType in class NodeImpl
See Also:
Node.getNodeType()

getName

public java.lang.String getName()

equals

public boolean equals(java.lang.Object other)

isEmpty

public boolean isEmpty()
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.

Returns:
True if element is empty

isAny

public boolean isAny()
Returns true if element may contain any child elements and character data in any order.

Returns:
True if element supports any contents

isMixed

public boolean isMixed()
Returns true if element contains mixed contents. Mixed contents includes both elements and character data in any particular order. This option implies that both isEmpty() and isAny() return false. If all three are false, then contents is subject to exact order.

Returns:
True if element contains mixed contents

requiresOpeningTag

public boolean requiresOpeningTag()
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 requiresClosingTag() is also true.

Returns:
True if opening tag is optional

requiresClosingTag

public boolean requiresClosingTag()
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.

Returns:
True if closing tag is optional

clone

public final java.lang.Object clone()

cloneNode

public final org.w3c.dom.Node cloneNode(boolean deep)
Specified by:
cloneNode in interface org.w3c.dom.Node


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.