Class RXAttribute
- java.lang.Object
- 
- com.inductiveautomation.rm.archiver.RXAttribute
 
- 
- Direct Known Subclasses:
- RXElement
 
 public class RXAttribute extends java.lang.ObjectTheRXAttributeclass represents an XML attribute by simply having a name and value. It also forms the super class of RXElement
- 
- 
Constructor SummaryConstructors Constructor Description RXAttribute()Creates an empty attribute.RXAttribute(java.lang.String aName, boolean aValue)Creates an attribute initialized with the given name and boolean value.RXAttribute(java.lang.String aName, double aValue)Creates an attribute initialized with the given name and float value.RXAttribute(java.lang.String aName, int aValue)Creates an attribute initialized with the given name and int value.RXAttribute(java.lang.String aName, java.lang.Boolean aValue)Creates an attribute initialized with the given name and Boolean value.RXAttribute(java.lang.String aName, java.lang.String aValue)Creates an attribute 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()Returns a basic string representation of this attribute.
 
- 
- 
- 
Constructor Detail- 
RXAttributepublic RXAttribute() Creates an empty attribute.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, java.lang.String aValue)Creates an attribute initialized with the given name and value.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, boolean aValue)Creates an attribute initialized with the given name and boolean value.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, java.lang.Boolean aValue)Creates an attribute initialized with the given name and Boolean value.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, int aValue)Creates an attribute initialized with the given name and int value.
 - 
RXAttributepublic RXAttribute(java.lang.String aName, double aValue)Creates an attribute initialized with the given name and float value.
 
- 
 - 
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() Returns a basic string representation of this attribute.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-