|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.om.impl.llom.OMAttributeImpl
public class OMAttributeImpl
Class OMAttributeImpl
| Field Summary | |
|---|---|
protected OMElement |
owner
|
| Constructor Summary | |
|---|---|
OMAttributeImpl(java.lang.String localName,
OMNamespace ns,
java.lang.String value,
OMFactory factory)
Constructor OMAttributeImpl. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Checks for the equality of two OMAttribute instances. |
java.lang.String |
getAttributeType()
Method getAttributeType. |
java.lang.String |
getAttributeValue()
Method getAttributeValue. |
java.lang.String |
getLocalName()
Method getLocalName. |
OMNamespace |
getNamespace()
Method getNamespace. |
OMFactory |
getOMFactory()
|
OMElement |
getOwner()
Returns the owner element of this attribute |
javax.xml.namespace.QName |
getQName()
|
int |
hashCode()
|
void |
setAttributeType(java.lang.String type)
Method setAttributeType. |
void |
setAttributeValue(java.lang.String value)
Method setAttributeValue. |
void |
setLocalName(java.lang.String localName)
Method setLocalName. |
void |
setOMNamespace(OMNamespace omNamespace)
Method setOMNamespace. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OMElement owner
| Constructor Detail |
|---|
public OMAttributeImpl(java.lang.String localName,
OMNamespace ns,
java.lang.String value,
OMFactory factory)
localName - ns - value - | Method Detail |
|---|
public javax.xml.namespace.QName getQName()
getQName in interface OMAttributepublic java.lang.String getLocalName()
getLocalName in interface OMAttributepublic void setLocalName(java.lang.String localName)
setLocalName in interface OMAttributelocalName - public java.lang.String getAttributeValue()
getAttributeValue in interface OMAttributepublic void setAttributeValue(java.lang.String value)
setAttributeValue in interface OMAttributevalue - public java.lang.String getAttributeType()
getAttributeType in interface OMAttributepublic void setAttributeType(java.lang.String type)
setAttributeType in interface OMAttributetype - public void setOMNamespace(OMNamespace omNamespace)
setOMNamespace in interface OMAttributeomNamespace - public OMNamespace getNamespace()
getNamespace in interface OMAttributepublic OMFactory getOMFactory()
getOMFactory in interface OMAttributepublic OMElement getOwner()
getOwner in interface OMAttributepublic boolean equals(java.lang.Object obj)
OMAttribute instances. Thus the object to compare
this with may be an instance of OMAttributeImpl (an instance of this class) or
an instance of AttrImpl. The method returns false for any object of type other
than OMAttribute.
We check for the equality of namespaces first (note that if the namespace of this instance is null
then for the obj to be equal its namespace must also be null). This condition solely
doesn't determine the equality. So we check for the equality of names and values (note that the value
can also be null in which case the same argument holds as that for the namespace) of the two instances.
If all three conditions are met then we say the two instances are equal.
Note: We ignore the owner when checking for the equality. This is simply because the owner is
introduced just to keep things simple for the programmer and not as part of an attribute itself.
equals in class java.lang.Objectobj - The object to compare with this instance.
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||