satin.aro
Class AROintegerDatum

java.lang.Object
  |
  +--satin.aro.AROdatum
        |
        +--satin.aro.AROintegerDatum

public class AROintegerDatum
extends AROdatum

An incoming integer data element.

Author:
Ed Stauff

Fields inherited from class satin.aro.AROdatum
gotten, name
 
Constructor Summary
AROintegerDatum(java.lang.String name, int value)
          Creates an integer data element.
AROintegerDatum(java.lang.String name, java.lang.String digits)
          Creates an integer data element from a string.
 
Method Summary
void addToOutput(AROoutgoingData d, java.lang.String name)
          Copies the incoming data (this object) into the given outgoing data.
void dump(java.lang.String indent)
          Dumps the contents of the object for debugging.
int getInteger()
          Returns the value of an integer data element.
java.lang.String toString()
          Converts the value of the data element to a string.
 
Methods inherited from class satin.aro.AROdatum
addToOutput, dump, getBoolean, getCompound, getName, getObjectID, getReal, getString, wasGotten
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AROintegerDatum

public AROintegerDatum(java.lang.String name,
                       int value)
Creates an integer data element.

Parameters:
name
The name of the data element, or null.
value
The value of the data element.

AROintegerDatum

public AROintegerDatum(java.lang.String name,
                       java.lang.String digits)
Creates an integer data element from a string.

Parameters:
name
The name of the data element, or null.
digits
A string containing the value of the data element.
Method Detail

getInteger

public int getInteger()
Description copied from class: AROdatum
Returns the value of an integer data element. Throws an assertion if the data element is not an integer.

Overrides:
getInteger in class AROdatum

Following copied from class: satin.aro.AROdatum

Returns:
The value of the data element.

addToOutput

public void addToOutput(AROoutgoingData d,
                        java.lang.String name)
Description copied from class: AROdatum
Copies the incoming data (this object) into the given outgoing data.

Overrides:
addToOutput in class AROdatum

Following copied from class: satin.aro.AROdatum

Parameters:
d
the outgoing data
name
the outgoing parameter name, or null for no parameter name.

toString

public java.lang.String toString()
Description copied from class: AROdatum
Converts the value of the data element to a string.

Overrides:
toString in class AROdatum

Following copied from class: satin.aro.AROdatum

Returns:
the value of the data element as a string.

dump

public void dump(java.lang.String indent)
Description copied from class: AROdatum
Dumps the contents of the object for debugging. The output consists of the class name, the datum's name in quotes, a colon, and the datum's value. The output goes to System.out.

Overrides:
dump in class AROdatum

Following copied from class: satin.aro.AROdatum

Parameters:
indent
this string is prepended to each line of output.
Revision History

4/6/01 Ed Stauff - changes per initial code review.

4/5/01 Ed Stauff - made changes per review.

3/27/01 Ed Stauff - initial review.



Generated on 5/9/2001 19:37 from AROintegerDatum.java (PRIVATE SOURCES)