org.exist.dom
Class AttrImpl

java.lang.Object
  extended byorg.exist.dom.NodeImpl
      extended byorg.exist.dom.AttrImpl
All Implemented Interfaces:
org.w3c.dom.Attr, org.w3c.dom.Node

public class AttrImpl
extends NodeImpl
implements org.w3c.dom.Attr

Description of the Class

Author:
Wolfgang Meier

Field Summary
protected  int attributeType
           
static int CDATA
           
static int ID
           
protected  ElementImpl ownerElement
           
protected  java.lang.String value
           
 
Fields inherited from class org.exist.dom.NodeImpl
attributes, gid, internalAddress, nodeName, nodeNameRef, nodeType, ownerDocument
 
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
 
Constructor Summary
AttrImpl(long gid)
          Constructor for the AttrImpl object
AttrImpl(java.lang.String name, java.lang.String value)
          Constructor for the AttrImpl object
 
Method Summary
static NodeImpl deserialize(byte[] data, int start, int len, DocumentImpl doc)
          Description of the Method
 java.lang.String getName()
          Gets the name attribute of the AttrImpl object
 java.lang.String getNodeValue()
          Gets the nodeValue attribute of the AttrImpl object
 org.w3c.dom.Element getOwnerElement()
          Gets the ownerElement attribute of the AttrImpl object
 boolean getSpecified()
          Gets the specified attribute of the AttrImpl object
 int getType()
           
 java.lang.String getValue()
          Gets the value attribute of the AttrImpl object
 byte[] serialize()
          Description of the Method
 void setType(int type)
           
 void setValue(java.lang.String value)
          Sets the value attribute of the AttrImpl object
 void toSAX(org.xml.sax.ContentHandler contentHandler, org.xml.sax.ext.LexicalHandler lexicalHandler, boolean first, java.util.ArrayList prefixes)
          Description of the Method
 java.lang.String toString()
          Description of the Method
 java.lang.String toString(boolean top)
          Description of the Method
 
Methods inherited from class org.exist.dom.NodeImpl
appendChild, appendChildren, clear, cloneNode, equals, firstChildID, getAttributes, getAttributesCount, getBroker, getChildCount, getChildNodes, getFirstChild, getGID, getInternalAddress, getLastChild, getLastNode, getLastNode, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeNameRef, getNodeType, getOwnerDocument, getParentGID, getParentNode, getPath, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertAfter, insertAfter, insertBefore, insertBefore, isSupported, lastChildID, normalize, removeChild, replaceChild, setAttributes, setChildCount, setGID, setInternalAddress, setNodeName, setNodeNameRef, setNodeValue, setOwnerDocument, setPrefix, supports, toSAX, updateChild
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Field Detail

CDATA

public static final int CDATA
See Also:
Constant Field Values

ID

public static final int ID
See Also:
Constant Field Values

attributeType

protected int attributeType

ownerElement

protected ElementImpl ownerElement

value

protected java.lang.String value
Constructor Detail

AttrImpl

public AttrImpl(long gid)
Constructor for the AttrImpl object

Parameters:
gid - Description of the Parameter

AttrImpl

public AttrImpl(java.lang.String name,
                java.lang.String value)
Constructor for the AttrImpl object

Parameters:
name - Description of the Parameter
value - Description of the Parameter
Method Detail

deserialize

public static NodeImpl deserialize(byte[] data,
                                   int start,
                                   int len,
                                   DocumentImpl doc)
Description of the Method

Parameters:
data - Description of the Parameter
doc - Description of the Parameter
Returns:
Description of the Return Value

getName

public java.lang.String getName()
Gets the name attribute of the AttrImpl object

Specified by:
getName in interface org.w3c.dom.Attr
Returns:
The name value

getType

public int getType()

setType

public void setType(int type)

getNodeValue

public java.lang.String getNodeValue()
Gets the nodeValue attribute of the AttrImpl object

Specified by:
getNodeValue in interface org.w3c.dom.Node
Overrides:
getNodeValue in class NodeImpl
Returns:
The nodeValue value
See Also:
Node.getNodeValue()

getOwnerElement

public org.w3c.dom.Element getOwnerElement()
Gets the ownerElement attribute of the AttrImpl object

Specified by:
getOwnerElement in interface org.w3c.dom.Attr
Returns:
The ownerElement value

getSpecified

public boolean getSpecified()
Gets the specified attribute of the AttrImpl object

Specified by:
getSpecified in interface org.w3c.dom.Attr
Returns:
The specified value

getValue

public java.lang.String getValue()
Gets the value attribute of the AttrImpl object

Specified by:
getValue in interface org.w3c.dom.Attr
Returns:
The value value

serialize

public byte[] serialize()
Description of the Method

Overrides:
serialize in class NodeImpl
Returns:
Description of the Return Value

setValue

public void setValue(java.lang.String value)
              throws org.w3c.dom.DOMException
Sets the value attribute of the AttrImpl object

Specified by:
setValue in interface org.w3c.dom.Attr
Parameters:
value - The new value value
Throws:
org.w3c.dom.DOMException - Description of the Exception

toSAX

public void toSAX(org.xml.sax.ContentHandler contentHandler,
                  org.xml.sax.ext.LexicalHandler lexicalHandler,
                  boolean first,
                  java.util.ArrayList prefixes)
           throws org.xml.sax.SAXException
Description of the Method

Overrides:
toSAX in class NodeImpl
Parameters:
contentHandler - Description of the Parameter
lexicalHandler - Description of the Parameter
first - Description of the Parameter
prefixes - Description of the Parameter
Throws:
org.xml.sax.SAXException - Description of the Exception

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class NodeImpl
Returns:
Description of the Return Value

toString

public java.lang.String toString(boolean top)
Description of the Method

Overrides:
toString in class NodeImpl
Parameters:
top - Description of the Parameter
Returns:
Description of the Return Value


Copyright (C) Wolfgang Meier. All rights reserved.