Package com.ribs
Class RXAttribute
java.lang.Object
com.ribs.RXAttribute
- Direct Known Subclasses:
- RXElement
The 
RXAttribute class represents an XML attribtue by simply having a name and value.
 It also forms the super class of RXElement
 Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill <info@reportmill.com>.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an empty RXAttribute.RXAttribute(String aName, boolean aValue) Creates an RXAttribute initialized with the given name and boolean value.RXAttribute(String aName, float aValue) Creates an RXAttribute initialized with the given name and float value.RXAttribute(String aName, float aValue, int significantDigits) Creates an RXAttribute initialized with the given name and float value (rounded to the given sgnf digits.RXAttribute(String aName, int aValue) Creates an RXAttribute initialized with the given name and int value.RXAttribute(String aName, Boolean aValue) Creates an RXAttribute initialized with the given name and Boolean value.RXAttribute(String aName, String aValue) Creates an RXAttribute initialized with the given name and value.
- 
Method SummaryModifier and TypeMethodDescriptionfloatReturns the value for this attribute as a float.intReturns the value for this attribute as an int.getName()Returns the name for this attribute.Returns value for the attribute as a Number (can be any of Integer, Double, etc)getValue()Returns the value for this attribute.voidSets the name for this attribute.voidSets the value for this attribute.toString()convenience method
- 
Constructor Details- 
RXAttributepublic RXAttribute()Creates an empty RXAttribute.
- 
RXAttributeCreates an RXAttribute initialized with the given name and value.
- 
RXAttributeCreates an RXAttribute initialized with the given name and boolean value.
- 
RXAttributeCreates an RXAttribute initialized with the given name and Boolean value.
- 
RXAttributeCreates an RXAttribute initialized with the given name and int value.
- 
RXAttributeCreates an RXAttribute initialized with the given name and float value.
- 
RXAttributeCreates an RXAttribute initialized with the given name and float value (rounded to the given sgnf digits.
 
- 
- 
Method Details- 
getNameReturns the name for this attribute.
- 
setNameSets the name for this attribute.
- 
getValueReturns the value for this attribute.
- 
setValueSets 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.
- 
getNumberValueReturns value for the attribute as a Number (can be any of Integer, Double, etc)
- 
toStringconvenience method
 
-