org.apache.abdera.model
Interface Attribute


public interface Attribute

An attribute. Returned by the Abdera XPath implementation when querying for Attribute nodes.


Method Summary
 Factory getFactory()
          The Abdera Factory
 QName getQName()
          Get the QName of the attribute
 String getText()
          Return the text value of the attribute
 Attribute setText(String text)
          Set the text value of the attribute.
 

Method Detail

getQName

QName getQName()
Get the QName of the attribute

Returns:
The attribute QName

getText

String getText()
Return the text value of the attribute

Returns:
The attribute value

setText

Attribute setText(String text)
Set the text value of the attribute. The value will be automatically escaped for proper serialization to XML

Parameters:
text - The attribute value

getFactory

Factory getFactory()
The Abdera Factory



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