|
|||||||||||
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,
String name)
|
|
AttrImpl(DocumentImpl ownerDocument,
String localName,
OMNamespace namespace)
|
|
AttrImpl(DocumentImpl ownerDocument,
String localName,
OMNamespace ns,
String value)
|
|
AttrImpl(DocumentImpl ownerDocument,
String name,
String value)
|
Method Summary | |
Node |
cloneNode(boolean deep)
|
OMNode |
detach()
Not supported: Cannot detach attributes. |
void |
discard()
Not supported: Cannot discard attributes. |
String |
getAttributeValue()
Returns the attribute value. |
String |
getLocalName()
Returns the attribute name. |
String |
getName()
|
OMNamespace |
getNamespace()
Returns the namespace of the attribute as an OMNamespace . |
String |
getNamespaceURI()
Returns the namespace URI of this attr node. |
String |
getNodeName()
Returns the name of this attribute. |
short |
getNodeType()
Returns the node type. |
String |
getNodeValue()
Returns the value of this attribute. |
Element |
getOwnerElement()
Returns the owner element. |
OMContainer |
getParent()
Returns the parent node of this attribute. |
String |
getPrefix()
Returns the namespace prefix of this attr node. |
QName |
getQName()
Returns a qname representing the attribute. |
TypeInfo |
getSchemaTypeInfo()
|
boolean |
getSpecified()
|
int |
getType()
Returns the type of this attribute node. |
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(String value)
Sets the attribute value. |
void |
setLocalName(String localName)
Sets the name of attribute. |
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. |
protected void |
setUsed(boolean used)
|
void |
setValue(String value)
Sets the value of the attribute. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, String localName, OMNamespace ns, String value)
public AttrImpl(DocumentImpl ownerDocument, String name, String value)
public AttrImpl(DocumentImpl ownerDocument, String name)
public AttrImpl(DocumentImpl ownerDocument, String localName, OMNamespace namespace)
Method Detail |
public String getNodeName()
getNodeName
in interface Node
public short getNodeType()
getNodeType
in interface Node
Node.getNodeType()
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
getNodeValue
in class NodeImpl
DOMException
Node.getNodeValue()
public String getValue()
getValue
in interface Attr
Attr.getValue()
public String getName()
getName
in interface Attr
public Element getOwnerElement()
getOwnerElement
in interface Attr
Attr.getOwnerElement()
public boolean getSpecified()
getSpecified
in interface Attr
public OMNode detach() throws OMException
detach
in interface OMNode
detach
in class NodeImpl
OMException
OMNode.detach()
public void discard() throws OMException
discard
in interface OMNode
OMException
OMNode.discard()
public int getType()
getType
in interface OMNode
OMNode.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 XMLStreamException
serialize
in interface OMNodeEx
omOutput
-
XMLStreamException
(org.apache.axis2.om.impl.OMOutputImpl)
public void serializeAndConsume(OMOutputImpl omOutput) throws XMLStreamException
serializeAndConsume
in interface OMNodeEx
omOutput
-
XMLStreamException
(org.apache.axis2.om.impl.OMOutputImpl)
public OMNamespace getNamespace()
OMNamespace
.
getNamespace
in interface OMAttribute
OMAttribute.getNamespace()
public QName getQName()
getQName
in interface OMAttribute
OMAttribute.getQName()
public String getAttributeValue()
getAttributeValue
in interface OMAttribute
OMAttribute.getAttributeValue()
public void setLocalName(String localName)
setLocalName
in interface OMAttribute
localName
- OMAttribute.setLocalName(java.lang.String)
public void setOMNamespace(OMNamespace omNamespace)
setOMNamespace
in interface OMAttribute
omNamespace
- (org.apache.axis2.om.OMNamespace)
public void setAttributeValue(String value)
setAttributeValue
in interface OMAttribute
value
- OMAttribute.setAttributeValue(java.lang.String)
public void setParent(OMContainer element)
setParent
in interface OMNodeEx
(org.apache.axis2.om.OMContainer)
public void setType(int nodeType) throws OMException
setType
in interface OMNodeEx
OMException
OMNodeEx.setType(int)
protected boolean isUsed()
protected void setUsed(boolean used)
used
- The used to set.public void setValue(String value) throws DOMException
setValue
in interface Attr
DOMException
Attr.setValue(java.lang.String)
public OMContainer getParent()
getParent
in interface OMNode
getParent
in class NodeImpl
OMNode.getParent()
public String getLocalName()
getLocalName
in interface OMAttribute
getLocalName
in class NodeImpl
Node.getLocalName()
public String getNamespaceURI()
getNamespaceURI
in interface Node
getNamespaceURI
in class NodeImpl
Node.getNamespaceURI()
public String getPrefix()
getPrefix
in interface Node
getPrefix
in class NodeImpl
Node.getPrefix()
public Node cloneNode(boolean deep)
cloneNode
in interface Node
cloneNode
in class NodeImpl
public TypeInfo getSchemaTypeInfo()
public boolean isId()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |