Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » serialization » hssfhelpers » [javadoc | source]
org.apache.cocoon.serialization.hssfhelpers
public class: Attribute [javadoc | source]
java.lang.Object
   org.apache.cocoon.serialization.hssfhelpers.Attribute
Encapsulation of a single XML element attribute in a way that shields the consumer from the data's XML origins.
Constructor:
 public Attribute(String name,
    String value) 
    Constructor
    Parameters:
    name - the name of the Attribute, the left hand side of the '=' of an XML element's attribute.
    value - the value of the Attribute, the right hand side of the '=' of an XML element's attribute.
    Throws:
    IllegalArgumentException - is thrown if name is null or empty, or if value is null.
    exception: IllegalArgumentException - is thrown if name is null or empty, or if value is null.
Method from org.apache.cocoon.serialization.hssfhelpers.Attribute Summary:
getName,   getValue,   getValueAsBoolean,   getValueAsInt,   getValueAsLong,   getValueAsShort
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.serialization.hssfhelpers.Attribute Detail:
 public String getName() 
    Get the name of the Attribute.
 public String getValue() 
    Get the value of the Attribute as a String.
 public boolean getValueAsBoolean() 
    A convenience method to get the value of the attribute as a boolean. Understands these value strings in a case-insensitive fashion:
    • t/f
    • true/false
    • y/n
    • yes/no
 public int getValueAsInt() 
    A convenience method to get the value of the Attribute as an int.
 public long getValueAsLong() 
    A convenience method to get the value of the Attribute as a long.
 public short getValueAsShort() 
    A convenience method to get the value of the Attribute as a short.