|
|||||||||||
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.ws.commons.om.OMAttribute
Field Summary | |
protected ParentNode |
parent
Owner of this attribute |
Fields inherited from class org.apache.axis2.om.impl.dom.NodeImpl |
builder, done, factory, 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.ws.commons.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,
org.apache.ws.commons.om.OMFactory factory)
|
|
AttrImpl(DocumentImpl ownerDocument,
String name,
org.apache.ws.commons.om.OMFactory factory)
|
|
AttrImpl(DocumentImpl ownerDocument,
String localName,
org.apache.ws.commons.om.OMNamespace namespace,
org.apache.ws.commons.om.OMFactory factory)
|
|
AttrImpl(DocumentImpl ownerDocument,
String localName,
org.apache.ws.commons.om.OMNamespace ns,
String value,
org.apache.ws.commons.om.OMFactory factory)
|
|
AttrImpl(DocumentImpl ownerDocument,
String name,
String value,
org.apache.ws.commons.om.OMFactory factory)
|
Method Summary | |
Node |
cloneNode(boolean deep)
|
org.apache.ws.commons.om.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()
|
org.apache.ws.commons.om.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. |
org.apache.ws.commons.om.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(org.apache.ws.commons.om.impl.OMOutputImpl omOutput)
This is not supported since attributes serialization is handled by the serialization of the owner nodes. |
void |
serializeAndConsume(org.apache.ws.commons.om.impl.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(org.apache.ws.commons.om.OMNamespace omNamespace)
Sets the namespace of this attribute node. |
void |
setParent(org.apache.ws.commons.om.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.apache.ws.commons.om.OMAttribute |
getOMFactory |
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, org.apache.ws.commons.om.OMFactory factory)
public AttrImpl(DocumentImpl ownerDocument, String localName, org.apache.ws.commons.om.OMNamespace ns, String value, org.apache.ws.commons.om.OMFactory factory)
public AttrImpl(DocumentImpl ownerDocument, String name, String value, org.apache.ws.commons.om.OMFactory factory)
public AttrImpl(DocumentImpl ownerDocument, String name, org.apache.ws.commons.om.OMFactory factory)
public AttrImpl(DocumentImpl ownerDocument, String localName, org.apache.ws.commons.om.OMNamespace namespace, org.apache.ws.commons.om.OMFactory factory)
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 org.apache.ws.commons.om.OMNode detach() throws org.apache.ws.commons.om.OMException
detach
in interface org.apache.ws.commons.om.OMNode
detach
in class NodeImpl
org.apache.ws.commons.om.OMException
OMNode.detach()
public void discard() throws org.apache.ws.commons.om.OMException
discard
in interface org.apache.ws.commons.om.OMNode
org.apache.ws.commons.om.OMException
OMNode.discard()
public int getType()
getType
in interface org.apache.ws.commons.om.OMNode
OMNode.getType()
public void serialize(org.apache.ws.commons.om.impl.OMOutputImpl omOutput) throws XMLStreamException
serialize
in interface org.apache.ws.commons.om.impl.OMNodeEx
XMLStreamException
(org.apache.ws.commons.om.impl.OMOutputImpl)
public void serializeAndConsume(org.apache.ws.commons.om.impl.OMOutputImpl omOutput) throws XMLStreamException
serializeAndConsume
in interface org.apache.ws.commons.om.impl.OMNodeEx
XMLStreamException
(org.apache.ws.commons.om.impl.OMOutputImpl)
public org.apache.ws.commons.om.OMNamespace getNamespace()
OMNamespace
.
getNamespace
in interface org.apache.ws.commons.om.OMAttribute
OMAttribute.getNamespace()
public QName getQName()
getQName
in interface org.apache.ws.commons.om.OMAttribute
OMAttribute.getQName()
public String getAttributeValue()
getAttributeValue
in interface org.apache.ws.commons.om.OMAttribute
OMAttribute.getAttributeValue()
public void setLocalName(String localName)
setLocalName
in interface org.apache.ws.commons.om.OMAttribute
OMAttribute.setLocalName(java.lang.String)
public void setOMNamespace(org.apache.ws.commons.om.OMNamespace omNamespace)
setOMNamespace
in interface org.apache.ws.commons.om.OMAttribute
(org.apache.ws.commons.om.OMNamespace)
public void setAttributeValue(String value)
setAttributeValue
in interface org.apache.ws.commons.om.OMAttribute
OMAttribute.setAttributeValue(java.lang.String)
public void setParent(org.apache.ws.commons.om.OMContainer element)
setParent
in interface org.apache.ws.commons.om.impl.OMNodeEx
(org.apache.ws.commons.om.OMContainer)
public void setType(int nodeType) throws org.apache.ws.commons.om.OMException
setType
in interface org.apache.ws.commons.om.impl.OMNodeEx
org.apache.ws.commons.om.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 org.apache.ws.commons.om.OMContainer getParent()
getParent
in interface org.apache.ws.commons.om.OMNode
getParent
in class NodeImpl
OMNode.getParent()
public String getLocalName()
getLocalName
in interface org.apache.ws.commons.om.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 |