Package com.ribs

Class RXAttribute

java.lang.Object
com.ribs.RXAttribute
Direct Known Subclasses:
RXElement

public class RXAttribute extends Object
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 Summary

    Constructors
    Constructor
    Description
    Creates 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 Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value for this attribute as a float.
    int
    Returns the value for this attribute as an int.
    Returns the name for this attribute.
    Returns value for the attribute as a Number (can be any of Integer, Double, etc)
    Returns the value for this attribute.
    void
    setName(String aName)
    Sets the name for this attribute.
    void
    setValue(String aValue)
    Sets the value for this attribute.
    convenience method

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RXAttribute

      public RXAttribute()
      Creates an empty RXAttribute.
    • RXAttribute

      public RXAttribute(String aName, String aValue)
      Creates an RXAttribute initialized with the given name and value.
    • RXAttribute

      public RXAttribute(String aName, boolean aValue)
      Creates an RXAttribute initialized with the given name and boolean value.
    • RXAttribute

      public RXAttribute(String aName, Boolean aValue)
      Creates an RXAttribute initialized with the given name and Boolean value.
    • RXAttribute

      public RXAttribute(String aName, int aValue)
      Creates an RXAttribute initialized with the given name and int value.
    • RXAttribute

      public RXAttribute(String aName, float aValue)
      Creates an RXAttribute initialized with the given name and float value.
    • RXAttribute

      public RXAttribute(String aName, float aValue, int significantDigits)
      Creates an RXAttribute initialized with the given name and float value (rounded to the given sgnf digits.
  • Method Details

    • getName

      public String getName()
      Returns the name for this attribute.
    • setName

      public void setName(String aName)
      Sets the name for this attribute.
    • getValue

      public String getValue()
      Returns the value for this attribute.
    • setValue

      public void setValue(String aValue)
      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

      public Number getNumberValue()
      Returns value for the attribute as a Number (can be any of Integer, Double, etc)
    • toString

      public String toString()
      convenience method
      Overrides:
      toString in class Object