org.apache.abdera.parser.stax
Class FOMAttribute

java.lang.Object
  extended by org.apache.abdera.parser.stax.FOMAttribute
All Implemented Interfaces:
Attribute

public class FOMAttribute
extends Object
implements Attribute


Constructor Summary
protected FOMAttribute(org.apache.axiom.om.OMAttribute attr)
           
 
Method Summary
 boolean equals(Object obj)
           
 Factory getFactory()
          The Abdera Factory
 QName getQName()
          Get the QName of the attribute
 String getText()
          Return the text value of the attribute
 int hashCode()
           
 Attribute setText(String text)
          Set the text value of the attribute.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FOMAttribute

protected FOMAttribute(org.apache.axiom.om.OMAttribute attr)
Method Detail

getQName

public QName getQName()
Description copied from interface: Attribute
Get the QName of the attribute

Specified by:
getQName in interface Attribute
Returns:
The attribute QName

getText

public String getText()
Description copied from interface: Attribute
Return the text value of the attribute

Specified by:
getText in interface Attribute
Returns:
The attribute value

setText

public Attribute setText(String text)
Description copied from interface: Attribute
Set the text value of the attribute. The value will be automatically escaped for proper serialization to XML

Specified by:
setText in interface Attribute
Parameters:
text - The attribute value

getFactory

public Factory getFactory()
Description copied from interface: Attribute
The Abdera Factory

Specified by:
getFactory in interface Attribute

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.