|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--satin.aro.AROdatum
public abstract class AROdatum
extends java.lang.ObjectThis is an abstract base class for incoming data elements. Type-specific accessors are defined in this base class to reduce the need for downcasting.
| Field Summary | |
protected boolean |
gotten
Whether the value has ever been gotten. |
protected java.lang.String |
name
The name of the data element, or null if the element has no name. |
| Constructor Summary | |
protected |
AROdatum()
Constructs an unnamed data element. |
protected |
AROdatum(java.lang.String name)
Constructs a named data element. |
| Method Summary | |
void |
addToOutput(AROoutgoingData d)
Copies the incoming data (this object) into the given outgoing data. |
abstract void |
addToOutput(AROoutgoingData d,
java.lang.String name)
Copies the incoming data (this object) into the given outgoing data. |
void |
dump()
Dumps the contents of the object for debugging. |
void |
dump(java.lang.String indent)
Dumps the contents of the object for debugging. |
boolean |
getBoolean()
Returns the value of a boolean data element. |
AROcompoundDatum |
getCompound()
Returns the value of a compound data element. |
int |
getInteger()
Returns the value of an integer data element. |
java.lang.String |
getName()
Returns the name of the data element. |
AROobjectID |
getObjectID()
Returns the id of an object data element. |
double |
getReal()
Returns the value of a real (floating point) data element. |
java.lang.String |
getString()
Returns the value of a string data element. |
abstract java.lang.String |
toString()
Converts the value of the data element to a string. |
boolean |
wasGotten()
Returns whether the value of the data element has ever been gotten; that is, if a get*** method has been called. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected boolean gotten
false,
changes to true the first time any get***
method is called, and never changes again for the life of the object.| Constructor Detail |
protected AROdatum(java.lang.String name)
nameprotected AROdatum()
| Method Detail |
public java.lang.String getName()
public boolean getBoolean()
public int getInteger()
public double getReal()
public java.lang.String getString()
public AROobjectID getObjectID()
public AROcompoundDatum getCompound()
public boolean wasGotten()
get*** method has been called.
public abstract void addToOutput(AROoutgoingData d,
java.lang.String name)
dnamepublic void addToOutput(AROoutgoingData d)
x.addToOutput(d, x.getName()).
- Parameters:
d- the outgoing data
public abstract java.lang.String toString()
toString in class java.lang.Object
public void dump()
public void dump(java.lang.String indent)
indent| 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
AROdatum.java (PRIVATE SOURCES)