Package com.ribs
Class RXAttribute
- java.lang.Object
- 
- com.ribs.RXAttribute
 
- 
- Direct Known Subclasses:
- RXElement
 
 public class RXAttribute extends java.lang.ObjectTheRXAttributeclass represents an XML attribtue by simply having a name and value. It also forms the super class of RXElementCopyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill . 
- 
- 
Constructor SummaryConstructors Constructor Description RXAttribute()Creates an empty RXAttribute.RXAttribute(java.lang.String aName, boolean aValue)Creates an RXAttribute initialized with the given name and boolean value.RXAttribute(java.lang.String aName, float aValue)Creates an RXAttribute initialized with the given name and float value.RXAttribute(java.lang.String aName, float aValue, int significantDigits)Creates an RXAttribute initialized with the given name and float value (rounded to the given sgnf digits.RXAttribute(java.lang.String aName, int aValue)Creates an RXAttribute initialized with the given name and int value.RXAttribute(java.lang.String aName, java.lang.Boolean aValue)Creates an RXAttribute initialized with the given name and Boolean value.RXAttribute(java.lang.String aName, java.lang.String aValue)Creates an RXAttribute initialized with the given name and value.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetFloatValue()Returns the value for this attribute as a float.intgetIntValue()Returns the value for this attribute as an int.java.lang.StringgetName()Returns the name for this attribute.java.lang.NumbergetNumberValue()Returns value for the attribute as a Number (can be any of Integer, Double, etc)java.lang.StringgetValue()Returns the value for this attribute.voidsetName(java.lang.String aName)Sets the name for this attribute.voidsetValue(java.lang.String aValue)Sets the value for this attribute.java.lang.StringtoString()convenience method
 
- 
- 
- 
Constructor Detail- 
RXAttributepublic RXAttribute() Creates an empty RXAttribute.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, java.lang.String aValue)Creates an RXAttribute initialized with the given name and value.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, boolean aValue)Creates an RXAttribute initialized with the given name and boolean value.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, java.lang.Boolean aValue)Creates an RXAttribute initialized with the given name and Boolean value.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, int aValue)Creates an RXAttribute initialized with the given name and int value.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, float aValue)Creates an RXAttribute initialized with the given name and float value.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, float aValue, int significantDigits)Creates an RXAttribute initialized with the given name and float value (rounded to the given sgnf digits.
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Returns the name for this attribute.
 - 
setNamepublic void setName(java.lang.String aName) Sets the name for this attribute.
 - 
getValuepublic java.lang.String getValue() Returns the value for this attribute.
 - 
setValuepublic void setValue(java.lang.String aValue) Sets the value for this attribute.
 - 
getIntValuepublic int getIntValue() Returns the value for this attribute as an int.
 - 
getFloatValuepublic float getFloatValue() Returns the value for this attribute as a float.
 - 
getNumberValuepublic java.lang.Number getNumberValue() Returns value for the attribute as a Number (can be any of Integer, Double, etc)
 - 
toStringpublic java.lang.String toString() convenience method- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-