|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis2.om.impl.dom.NodeImpl
org.apache.axis2.om.impl.dom.AttrImpl
Implementation of org.w3c.dom.Attr and
org.apache.axis2.om.OMAttribute
| Field Summary | |
protected ParentNode |
parent
Owner of this attribute |
| Fields inherited from class org.apache.axis2.om.impl.dom.NodeImpl |
builder, done, FIRSTCHILD, flags, nodeType, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED |
| 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 |
| Fields inherited from interface org.apache.axis2.om.OMNode |
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
| Constructor Summary | |
protected |
AttrImpl(DocumentImpl ownerDocument)
|
|
AttrImpl(DocumentImpl ownerDocument,
java.lang.String name)
|
|
AttrImpl(DocumentImpl ownerDocument,
java.lang.String localName,
OMNamespace namespace)
|
|
AttrImpl(DocumentImpl ownerDocument,
java.lang.String localName,
OMNamespace ns,
java.lang.String value)
|
|
AttrImpl(DocumentImpl ownerDocument,
java.lang.String name,
java.lang.String value)
|
|
AttrImpl(java.lang.String localName,
OMNamespace ns,
java.lang.String value)
|
|
AttrImpl(java.lang.String name,
java.lang.String value)
|
| Method Summary | |
org.w3c.dom.Node |
cloneNode(boolean deep)
|
OMNode |
detach()
Not supported: Cannot detach attributes Use the operations available in the owner node |
void |
discard()
Not supported: Cannot discard attributes Use the operations available in the owner node |
java.lang.String |
getAttributeValue()
Returns the attribute value |
java.lang.String |
getLocalName()
Returns the attribute name |
java.lang.String |
getName()
|
OMNamespace |
getNamespace()
Returns the namespace of the attribute as an OMNamespace |
java.lang.String |
getNamespaceURI()
Retuns the namespace URI of this attr node |
java.lang.String |
getNodeName()
Returns the name of this attribute |
short |
getNodeType()
Returns the node type |
java.lang.String |
getNodeValue()
returns the value of this attribute |
org.w3c.dom.Element |
getOwnerElement()
Returns the owner element |
OMContainer |
getParent()
Returns the parent node of this attribute |
java.lang.String |
getPrefix()
Returns the namespace prefix of this attr node |
javax.xml.namespace.QName |
getQName()
Returns a qname representing the attribute |
org.w3c.dom.TypeInfo |
getSchemaTypeInfo()
|
boolean |
getSpecified()
|
int |
getType()
Returns the type of this Attr node |
java.lang.String |
getValue()
returns the value of this attribute |
boolean |
isId()
|
protected boolean |
isUsed()
|
void |
serialize(OMOutputImpl omOutput)
This is not supported since attributes serialization is handled by the serialization of the owner nodes |
void |
serializeAndConsume(OMOutputImpl omOutput)
This is not supported since attributes serialization is handled by the serialization of the owner nodes |
void |
setAttributeValue(java.lang.String value)
Sets the attribute value |
void |
setLocalName(java.lang.String localName)
Sets the attribute name |
void |
setOMNamespace(OMNamespace omNamespace)
Sets the namespace of this attribute node |
void |
setParent(OMContainer element)
Sets the parent element to the given OMContainer |
void |
setType(int nodeType)
Sets the type NOT IMPLEMENTED: Unnecessary |
protected void |
setUsed(boolean used)
|
void |
setValue(java.lang.String value)
Sets the value of the attribute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Field Detail |
protected ParentNode parent
| Constructor Detail |
protected AttrImpl(DocumentImpl ownerDocument)
public AttrImpl(DocumentImpl ownerDocument,
java.lang.String localName,
OMNamespace ns,
java.lang.String value)
public AttrImpl(DocumentImpl ownerDocument,
java.lang.String name,
java.lang.String value)
public AttrImpl(DocumentImpl ownerDocument,
java.lang.String name)
public AttrImpl(DocumentImpl ownerDocument,
java.lang.String localName,
OMNamespace namespace)
public AttrImpl(java.lang.String localName,
OMNamespace ns,
java.lang.String value)
public AttrImpl(java.lang.String name,
java.lang.String value)
| Method Detail |
public java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.Nodepublic short getNodeType()
getNodeType in interface org.w3c.dom.NodeNode.getNodeType()
public java.lang.String getNodeValue()
throws org.w3c.dom.DOMException
getNodeValue in interface org.w3c.dom.NodegetNodeValue in class NodeImplorg.w3c.dom.DOMExceptionNode.getNodeValue()public java.lang.String getValue()
getValue in interface org.w3c.dom.AttrAttr.getValue()public java.lang.String getName()
getName in interface org.w3c.dom.Attrpublic org.w3c.dom.Element getOwnerElement()
getOwnerElement in interface org.w3c.dom.AttrAttr.getOwnerElement()public boolean getSpecified()
getSpecified in interface org.w3c.dom.Attr
public OMNode detach()
throws OMException
detach in interface OMNodedetach in class NodeImplOMExceptionOMNode.detach()
public void discard()
throws OMException
discard in interface OMNodeOMExceptionOMNode.discard()public int getType()
getType in interface OMNodeOMNode.ELEMENT_NODE, OMNode.TEXT_NODE, OMNode.CDATA_SECTION_NODE, OMNode.COMMENT_NODE,
OMNode.DTD_NODE, OMNode.PI_NODE, OMNode.ENTITY_REFERENCE_NODE, OMNode.SPACE_NODE,
or OMNode.TEXT_NODE.OMNode.getType()
public void serialize(OMOutputImpl omOutput)
throws javax.xml.stream.XMLStreamException
serialize in interface OMNodeExomOutput -
javax.xml.stream.XMLStreamExceptionorg.apache.axis2.om.OMNode#serialize(org.apache.axis2.om.impl.OMOutputImpl)
public void serializeAndConsume(OMOutputImpl omOutput)
throws javax.xml.stream.XMLStreamException
serializeAndConsume in interface OMNodeExomOutput -
javax.xml.stream.XMLStreamExceptionorg.apache.axis2.om.OMNode#serializeAndConsume(org.apache.axis2.om.impl.OMOutputImpl)public OMNamespace getNamespace()
OMNamespace
getNamespace in interface OMAttributeOMAttribute.getNamespace()public javax.xml.namespace.QName getQName()
getQName in interface OMAttributeOMAttribute.getQName()public java.lang.String getAttributeValue()
getAttributeValue in interface OMAttributeOMAttribute.getAttributeValue()public void setLocalName(java.lang.String localName)
setLocalName in interface OMAttributelocalName - OMAttribute.setLocalName(java.lang.String)public void setOMNamespace(OMNamespace omNamespace)
setOMNamespace in interface OMAttributeomNamespace - OMAttribute.setOMNamespace(org.apache.axis2.om.OMNamespace)public void setAttributeValue(java.lang.String value)
setAttributeValue in interface OMAttributevalue - OMAttribute.setAttributeValue(java.lang.String)public void setParent(OMContainer element)
setParent in interface OMNodeExOMNodeEx.setParent(org.apache.axis2.om.OMContainer)
public void setType(int nodeType)
throws OMException
setType in interface OMNodeExOMExceptionOMNodeEx.setType(int)protected boolean isUsed()
protected void setUsed(boolean used)
used - The used to set.
public void setValue(java.lang.String value)
throws org.w3c.dom.DOMException
setValue in interface org.w3c.dom.Attrorg.w3c.dom.DOMExceptionAttr.setValue(java.lang.String)public OMContainer getParent()
getParent in interface OMNodegetParent in class NodeImplOMNode.getParent()public java.lang.String getLocalName()
getLocalName in interface OMAttributegetLocalName in class NodeImplNode.getLocalName()public java.lang.String getNamespaceURI()
getNamespaceURI in interface org.w3c.dom.NodegetNamespaceURI in class NodeImplNode.getNamespaceURI()public java.lang.String getPrefix()
getPrefix in interface org.w3c.dom.NodegetPrefix in class NodeImplNode.getPrefix()public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.NodecloneNode in class NodeImplpublic org.w3c.dom.TypeInfo getSchemaTypeInfo()
public boolean isId()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||