org.ozoneDB.xml.dom4j.o3impl
Class OzoneAttributeImpl

java.lang.Object
  extended byorg.ozoneDB.OzoneObject
      extended byorg.ozoneDB.xml.dom4j.o3impl.AbstractNode
          extended byorg.ozoneDB.xml.dom4j.o3impl.AbstractAttribute
              extended byorg.ozoneDB.xml.dom4j.o3impl.FlyweightAttribute
                  extended byorg.ozoneDB.xml.dom4j.o3impl.DefaultAttribute
                      extended byorg.ozoneDB.xml.dom4j.o3impl.OzoneAttributeImpl
All Implemented Interfaces:
Attribute, java.lang.Cloneable, Node, OzoneAttribute, org.ozoneDB.OzoneCompatible, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote, java.io.Serializable

public class OzoneAttributeImpl
extends DefaultAttribute
implements OzoneAttribute, org.ozoneDB.OzoneCompatible

Author:
Per Nyfelt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ozoneDB.xml.dom4j.o3impl.FlyweightAttribute
value
 
Fields inherited from class org.ozoneDB.xml.dom4j.o3impl.AbstractNode
NODE_TYPE_NAMES
 
Fields inherited from interface org.dom4j.Node
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
 
Constructor Summary
OzoneAttributeImpl(Element parent, QName qname, java.lang.String value)
           
OzoneAttributeImpl(NodeFactory nodeFactory, Element parent, java.lang.String name, java.lang.String value, Namespace namespace)
           
OzoneAttributeImpl(NodeFactory nodeFactory, java.lang.String name, java.lang.String value)
          Creates the Attribute with the specified local name and value.
OzoneAttributeImpl(NodeFactory nodeFactory, java.lang.String name, java.lang.String value, Namespace namespace)
          Creates the Attribute with the specified local name, value and AbstractNamespace.
OzoneAttributeImpl(QName qname)
           
OzoneAttributeImpl(QName qname, java.lang.String value)
           
 
Method Summary
 java.lang.Object clone()
          clone will return a deep clone or if this node is read-only then clone will return the same instance.
static OzoneAttribute create(org.ozoneDB.OzoneInterface db, Element parent, QName qname, java.lang.String value)
           
static OzoneAttribute create(org.ozoneDB.OzoneInterface db, Element parent, java.lang.String name, java.lang.String value, Namespace namespace)
           
static OzoneAttribute create(org.ozoneDB.OzoneInterface db, QName qname)
           
static OzoneAttribute create(org.ozoneDB.OzoneInterface db, QName qname, java.lang.String value)
           
static OzoneAttribute create(org.ozoneDB.OzoneInterface db, java.lang.String name, java.lang.String value)
           
static OzoneAttribute create(org.ozoneDB.OzoneInterface db, java.lang.String name, java.lang.String value, Namespace namespace)
           
 DocumentFactory getDocumentFactory()
           
 void onActivate()
           
 void onCreate()
           
 void onDelete()
           
 void onPassivate()
           
 
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.DefaultAttribute
getParent, isReadOnly, setParent, setValue, supportsParent
 
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.FlyweightAttribute
getQName, getValue
 
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.AbstractAttribute
accept, asXML, createXPathResult, getData, getName, getNamespace, getNamespacePrefix, getNamespaceURI, getNodeType, getPath, getQualifiedName, getText, getUniquePath, setData, setNamespace, setText, toString, write
 
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.AbstractNode
asXPathResult, createPattern, createXPath, createXPathFilter, detach, getDocument, getNodeFactory, getNodeTypeName, getPath, getStringValue, getUniquePath, getXPathFactory, hasContent, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setDocumentFactory, setName, setNodeFactory, setXPathFactory, valueOf
 
Methods inherited from class org.ozoneDB.OzoneObject
container, database, deleteRecursive, equals, getHandle, getObjectID, handle, hashCode, requireWriteLocking, self, setContainer, toXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.dom4j.Attribute
getData, getNamespace, getNamespacePrefix, getNamespaceURI, getQName, getQualifiedName, getValue, setData, setNamespace, setValue
 
Methods inherited from interface org.dom4j.Node
accept, asXML, asXPathResult, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getParent, getPath, getPath, getStringValue, getText, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 
Methods inherited from interface org.ozoneDB.OzoneCompatible
container, database, self, setContainer, toXML
 

Constructor Detail

OzoneAttributeImpl

public OzoneAttributeImpl(QName qname)

OzoneAttributeImpl

public OzoneAttributeImpl(QName qname,
                          java.lang.String value)

OzoneAttributeImpl

public OzoneAttributeImpl(Element parent,
                          QName qname,
                          java.lang.String value)

OzoneAttributeImpl

public OzoneAttributeImpl(NodeFactory nodeFactory,
                          java.lang.String name,
                          java.lang.String value)
Creates the Attribute with the specified local name and value.

Parameters:
name - is the name of the attribute
value - is the value of the attribute

OzoneAttributeImpl

public OzoneAttributeImpl(NodeFactory nodeFactory,
                          java.lang.String name,
                          java.lang.String value,
                          Namespace namespace)
Creates the Attribute with the specified local name, value and AbstractNamespace.

Parameters:
name - is the name of the attribute
value - is the value of the attribute
namespace - is the namespace of the attribute

OzoneAttributeImpl

public OzoneAttributeImpl(NodeFactory nodeFactory,
                          Element parent,
                          java.lang.String name,
                          java.lang.String value,
                          Namespace namespace)
Method Detail

create

public static OzoneAttribute create(org.ozoneDB.OzoneInterface db,
                                    QName qname)

create

public static OzoneAttribute create(org.ozoneDB.OzoneInterface db,
                                    QName qname,
                                    java.lang.String value)

create

public static OzoneAttribute create(org.ozoneDB.OzoneInterface db,
                                    Element parent,
                                    QName qname,
                                    java.lang.String value)

create

public static OzoneAttribute create(org.ozoneDB.OzoneInterface db,
                                    java.lang.String name,
                                    java.lang.String value)

create

public static OzoneAttribute create(org.ozoneDB.OzoneInterface db,
                                    java.lang.String name,
                                    java.lang.String value,
                                    Namespace namespace)

create

public static OzoneAttribute create(org.ozoneDB.OzoneInterface db,
                                    Element parent,
                                    java.lang.String name,
                                    java.lang.String value,
                                    Namespace namespace)

getDocumentFactory

public DocumentFactory getDocumentFactory()
Overrides:
getDocumentFactory in class AbstractNode

clone

public java.lang.Object clone()
Description copied from interface: Node

clone will return a deep clone or if this node is read-only then clone will return the same instance.

Specified by:
clone in interface Node
Overrides:
clone in class AbstractNode

onCreate

public void onCreate()
Specified by:
onCreate in interface org.ozoneDB.OzoneCompatible
Overrides:
onCreate in class AbstractNode

onActivate

public void onActivate()
Specified by:
onActivate in interface org.ozoneDB.OzoneCompatible

onPassivate

public void onPassivate()
Specified by:
onPassivate in interface org.ozoneDB.OzoneCompatible

onDelete

public void onDelete()
Specified by:
onDelete in interface org.ozoneDB.OzoneCompatible


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