org.apache.axiom.om.xpath
Class DocumentNavigator.OMAttributeEx
java.lang.Object
org.apache.axiom.om.xpath.DocumentNavigator.OMAttributeEx
- All Implemented Interfaces:
- OMAttribute
- Enclosing class:
- DocumentNavigator
class DocumentNavigator.OMAttributeEx
- extends java.lang.Object
- implements OMAttribute
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attribute
OMAttribute attribute
parent
OMContainer parent
factory
OMFactory factory
DocumentNavigator.OMAttributeEx
DocumentNavigator.OMAttributeEx(OMAttribute attribute,
OMContainer parent,
OMFactory factory)
getLocalName
public java.lang.String getLocalName()
- Specified by:
getLocalName
in interface OMAttribute
- Returns:
- Returns localName.
setLocalName
public void setLocalName(java.lang.String localName)
- Specified by:
setLocalName
in interface OMAttribute
getAttributeValue
public java.lang.String getAttributeValue()
- Specified by:
getAttributeValue
in interface OMAttribute
- Returns:
- Returns String.
setAttributeValue
public void setAttributeValue(java.lang.String value)
- Specified by:
setAttributeValue
in interface OMAttribute
setOMNamespace
public void setOMNamespace(OMNamespace omNamespace)
- Specified by:
setOMNamespace
in interface OMAttribute
getNamespace
public OMNamespace getNamespace()
- Specified by:
getNamespace
in interface OMAttribute
- Returns:
- Returns OMNamespace.
getQName
public javax.xml.namespace.QName getQName()
- Specified by:
getQName
in interface OMAttribute
- Returns:
- Returns javax.xml.namespace.QName
getParent
public OMContainer getParent()
getOMFactory
public OMFactory getOMFactory()
- Description copied from interface:
OMAttribute
- Returns the OMFactory that created this object
- Specified by:
getOMFactory
in interface OMAttribute
getOwner
public OMElement getOwner()
- Returns the owner element of this attribute
- Specified by:
getOwner
in interface OMAttribute
- Returns:
- OMElement If the parent
OMContainer
is an
instanceof OMElement
we return that element else
we return null. To get the OMContainer
itself use
the getParent()
method.