public class RXAttribute
extends java.lang.Object
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 Constructor and 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,
java.lang.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.String aValue)
Creates an RXAttribute initialized with the given name and value.
|
Modifier and Type | Method and Description |
---|---|
float |
getFloatValue()
Returns the value for this attribute as a float.
|
int |
getIntValue()
Returns the value for this attribute as an int.
|
java.lang.String |
getName()
Returns the name for this attribute.
|
java.lang.Number |
getNumberValue()
Returns value for the attribute as a Number (can be any of Integer, Double, etc)
|
java.lang.String |
getValue()
Returns the value for this attribute.
|
void |
setName(java.lang.String aName)
Sets the name for this attribute.
|
void |
setValue(java.lang.String aValue)
Sets the value for this attribute.
|
java.lang.String |
toString()
convenience method
|
public RXAttribute()
public RXAttribute(java.lang.String aName, java.lang.String aValue)
public RXAttribute(java.lang.String aName, boolean aValue)
public RXAttribute(java.lang.String aName, java.lang.Boolean aValue)
public RXAttribute(java.lang.String aName, int aValue)
public RXAttribute(java.lang.String aName, float aValue)
public RXAttribute(java.lang.String aName, float aValue, int significantDigits)
public java.lang.String getName()
public void setName(java.lang.String aName)
public java.lang.String getValue()
public void setValue(java.lang.String aValue)
public int getIntValue()
public float getFloatValue()
public java.lang.Number getNumberValue()
public java.lang.String toString()
toString
in class java.lang.Object