Class RXAttribute
java.lang.Object
com.inductiveautomation.rm.archiver.RXAttribute
- Direct Known Subclasses:
RXElement
The
RXAttribute
class represents an XML attribute by simply having a name and value.
It also forms the super class of RXElement-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty attribute.RXAttribute
(String aName, boolean aValue) Creates an attribute initialized with the given name and boolean value.RXAttribute
(String aName, double aValue) Creates an attribute initialized with the given name and float value.RXAttribute
(String aName, int aValue) Creates an attribute initialized with the given name and int value.RXAttribute
(String aName, Boolean aValue) Creates an attribute initialized with the given name and Boolean value.RXAttribute
(String aName, String aValue) Creates an attribute initialized with the given name and value. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the value for this attribute as a float.int
Returns 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.void
Sets the name for this attribute.void
Sets the value for this attribute.toString()
Returns a basic string representation of this attribute.
-
Constructor Details
-
RXAttribute
public RXAttribute()Creates an empty attribute. -
RXAttribute
Creates an attribute initialized with the given name and value. -
RXAttribute
Creates an attribute initialized with the given name and boolean value. -
RXAttribute
Creates an attribute initialized with the given name and Boolean value. -
RXAttribute
Creates an attribute initialized with the given name and int value. -
RXAttribute
Creates an attribute initialized with the given name and float value.
-
-
Method Details
-
getName
Returns the name for this attribute. -
setName
Sets the name for this attribute. -
getValue
Returns the value for this attribute. -
setValue
Sets the value for this attribute. -
getIntValue
public int getIntValue()Returns the value for this attribute as an int. -
getFloatValue
public float getFloatValue()Returns the value for this attribute as a float. -
getNumberValue
Returns value for the attribute as a Number (can be any of Integer, Double, etc). -
toString
Returns a basic string representation of this attribute.
-