org.exist.dom
Class AttrImpl

java.lang.Object
  extended by org.exist.dom.NodeImpl
      extended by org.exist.dom.StoredNode
          extended by org.exist.dom.NamedNode
              extended by org.exist.dom.AttrImpl
All Implemented Interfaces:
QNameable, Visitable, Attr, Node

public class AttrImpl
extends NamedNode
implements Attr


Field Summary
static int CDATA
           
static int DEFAULT_ATTRIBUTE_TYPE
           
static int ID
           
static int IDREF
           
static int IDREFS
           
static int LENGTH_NS_ID
           
static int LENGTH_PREFIX_LENGTH
           
 
Fields inherited from class org.exist.dom.StoredNode
LENGTH_SIGNATURE_LENGTH, UNKNOWN_NODE_IMPL_ADDRESS
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
AttrImpl()
           
AttrImpl(AttrImpl other)
           
AttrImpl(QName name)
           
AttrImpl(QName name, String str)
           
AttrImpl(QName name, XMLString value)
           
 
Method Summary
static void addToList(DBBroker broker, byte[] data, int start, int len, AttrList list)
           
 void clear()
          Reset this object to its initial state.
 short compareDocumentPosition(Node other)
          ? @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
static StoredNode deserialize(byte[] data, int start, int len, DocumentImpl doc, boolean pooled)
           
 String getBaseURI()
          ? @see org.w3c.dom.Node#getBaseURI()
 int getChildCount()
           
 Object getFeature(String feature, String version)
          ? @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
 Node getFirstChild()
           
 String getName()
           
 String getNodeValue()
           
 Element getOwnerElement()
           
 TypeInfo getSchemaTypeInfo()
          ? @see org.w3c.dom.Attr#getSchemaTypeInfo()
 boolean getSpecified()
           
 String getTextContent()
          ? @see org.w3c.dom.Node#getTextContent()
 int getType()
           
 Object getUserData(String key)
          ? @see org.w3c.dom.Node#getUserData(java.lang.String)
 String getValue()
           
 boolean hasChildNodes()
           
 boolean isDefaultNamespace(String namespaceURI)
          ? @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
 boolean isEqualNode(Node arg)
          ? @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
 boolean isId()
          ? @see org.w3c.dom.Attr#isId()
 boolean isSameNode(Node other)
          ? @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
 String lookupNamespaceURI(String prefix)
          ? @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
 String lookupPrefix(String namespaceURI)
          ? @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
 byte[] serialize()
           
 void setTextContent(String textContent)
          ? @see org.w3c.dom.Node#setTextContent(java.lang.String)
 void setType(int type)
           
 Object setUserData(String key, Object data, UserDataHandler handler)
          ? @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
 void setValue(String str)
           
 String toString()
           
 String toString(boolean top)
           
 
Methods inherited from class org.exist.dom.NamedNode
getQName, setNodeName
 
Methods inherited from class org.exist.dom.StoredNode
accept, accept, deserialize, equals, getDocId, getDocument, getInternalAddress, getNextSibling, getNodeId, getNodeType, getOwnerDocument, getParentNode, getPath, getPath, getPreviousSibling, isDirty, release, setDirty, setInternalAddress, setNodeId, setOwnerDocument
 
Methods inherited from class org.exist.dom.NodeImpl
appendChild, appendChildren, cloneNode, getAttributes, getAttributesCount, getChildNodes, getLastChild, getLocalName, getNamespaceURI, getNodeName, getPrefix, hasAttributes, insertAfter, insertAfter, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setAttributes, setNodeValue, setPrefix, supports, updateChild, updateChild
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Field Detail

LENGTH_NS_ID

public static final int LENGTH_NS_ID
See Also:
Constant Field Values

LENGTH_PREFIX_LENGTH

public static final int LENGTH_PREFIX_LENGTH
See Also:
Constant Field Values

CDATA

public static final int CDATA
See Also:
Constant Field Values

ID

public static final int ID
See Also:
Constant Field Values

IDREF

public static final int IDREF
See Also:
Constant Field Values

IDREFS

public static final int IDREFS
See Also:
Constant Field Values

DEFAULT_ATTRIBUTE_TYPE

public static final int DEFAULT_ATTRIBUTE_TYPE
See Also:
Constant Field Values
Constructor Detail

AttrImpl

public AttrImpl()

AttrImpl

public AttrImpl(QName name)

AttrImpl

public AttrImpl(QName name,
                XMLString value)

AttrImpl

public AttrImpl(QName name,
                String str)

AttrImpl

public AttrImpl(AttrImpl other)
Method Detail

clear

public void clear()
Description copied from class: StoredNode
Reset this object to its initial state. Required by the parser to be able to reuse node objects.

Overrides:
clear in class NamedNode

serialize

public byte[] serialize()
Overrides:
serialize in class StoredNode

deserialize

public static StoredNode deserialize(byte[] data,
                                     int start,
                                     int len,
                                     DocumentImpl doc,
                                     boolean pooled)

addToList

public static void addToList(DBBroker broker,
                             byte[] data,
                             int start,
                             int len,
                             AttrList list)

getName

public String getName()
Specified by:
getName in interface Attr

getType

public int getType()

setType

public void setType(int type)

getValue

public String getValue()
Specified by:
getValue in interface Attr

getNodeValue

public String getNodeValue()
Specified by:
getNodeValue in interface Node
Overrides:
getNodeValue in class NodeImpl
See Also:
Node.getNodeValue()

setValue

public void setValue(String str)
              throws DOMException
Specified by:
setValue in interface Attr
Throws:
DOMException

getOwnerElement

public Element getOwnerElement()
Specified by:
getOwnerElement in interface Attr

getSpecified

public boolean getSpecified()
Specified by:
getSpecified in interface Attr

toString

public String toString()
Overrides:
toString in class StoredNode

toString

public String toString(boolean top)
Overrides:
toString in class StoredNode

hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface Node
Overrides:
hasChildNodes in class NodeImpl
See Also:
Node.hasChildNodes()

getChildCount

public int getChildCount()
Overrides:
getChildCount in class NodeImpl

getFirstChild

public Node getFirstChild()
Specified by:
getFirstChild in interface Node
Overrides:
getFirstChild in class NodeImpl
See Also:
Node.getFirstChild()

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()
? @see org.w3c.dom.Attr#getSchemaTypeInfo()

Specified by:
getSchemaTypeInfo in interface Attr

isId

public boolean isId()
? @see org.w3c.dom.Attr#isId()

Specified by:
isId in interface Attr

getBaseURI

public String getBaseURI()
? @see org.w3c.dom.Node#getBaseURI()

Specified by:
getBaseURI in interface Node
Overrides:
getBaseURI in class NodeImpl

compareDocumentPosition

public short compareDocumentPosition(Node other)
                              throws DOMException
? @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)

Specified by:
compareDocumentPosition in interface Node
Overrides:
compareDocumentPosition in class NodeImpl
Throws:
DOMException

getTextContent

public String getTextContent()
                      throws DOMException
? @see org.w3c.dom.Node#getTextContent()

Specified by:
getTextContent in interface Node
Overrides:
getTextContent in class NodeImpl
Throws:
DOMException

setTextContent

public void setTextContent(String textContent)
                    throws DOMException
? @see org.w3c.dom.Node#setTextContent(java.lang.String)

Specified by:
setTextContent in interface Node
Overrides:
setTextContent in class NodeImpl
Throws:
DOMException

isSameNode

public boolean isSameNode(Node other)
? @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)

Specified by:
isSameNode in interface Node
Overrides:
isSameNode in class NodeImpl

lookupPrefix

public String lookupPrefix(String namespaceURI)
? @see org.w3c.dom.Node#lookupPrefix(java.lang.String)

Specified by:
lookupPrefix in interface Node
Overrides:
lookupPrefix in class NodeImpl

isDefaultNamespace

public boolean isDefaultNamespace(String namespaceURI)
? @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)

Specified by:
isDefaultNamespace in interface Node
Overrides:
isDefaultNamespace in class NodeImpl

lookupNamespaceURI

public String lookupNamespaceURI(String prefix)
? @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)

Specified by:
lookupNamespaceURI in interface Node
Overrides:
lookupNamespaceURI in class NodeImpl

isEqualNode

public boolean isEqualNode(Node arg)
? @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)

Specified by:
isEqualNode in interface Node
Overrides:
isEqualNode in class NodeImpl

getFeature

public Object getFeature(String feature,
                         String version)
? @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)

Specified by:
getFeature in interface Node
Overrides:
getFeature in class NodeImpl

setUserData

public Object setUserData(String key,
                          Object data,
                          UserDataHandler handler)
? @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)

Specified by:
setUserData in interface Node
Overrides:
setUserData in class NodeImpl

getUserData

public Object getUserData(String key)
? @see org.w3c.dom.Node#getUserData(java.lang.String)

Specified by:
getUserData in interface Node
Overrides:
getUserData in class NodeImpl


Copyright (C) Wolfgang Meier. All rights reserved.