ABLE, Version 1.1b

com.ibm.able.beans
Class AbleAtom

java.lang.Object
  |
  +--com.ibm.able.beans.AbleAtom
Direct Known Subclasses:
AbleFact, AbleMethodAdaptor, AbleRuleVariable

public class AbleAtom
extends java.lang.Object
implements java.io.Serializable

An Atom is a named property-value pair

Version:
1.0.0; change log:
 Version   Description
 --------  -----------
 1.0.0     Initial release.

 
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
          name is the name of the atom.
protected  java.lang.Object value
          value contains the current value of the atom.
 
Constructor Summary
AbleAtom(java.lang.String aName)
          Create a new Atom with the specified name.
AbleAtom(java.lang.String aName, java.lang.Object aValue)
          Create a new Atom with the specified name and value.
 
Method Summary
 java.lang.String getName()
          Retrieve the atom's name.
 java.lang.Object getValue()
          Retrieve the atom's value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
name is the name of the atom. It must be unique within the namespace.

value

protected java.lang.Object value
value contains the current value of the atom.
Constructor Detail

AbleAtom

public AbleAtom(java.lang.String aName)
Create a new Atom with the specified name.
Parameters:
aName - The name of the new atom.


AbleAtom

public AbleAtom(java.lang.String aName,
                java.lang.Object aValue)
Create a new Atom with the specified name and value.
Parameters:
aName - The name of the new atom.

aValue - Any arbitrary object that represents the value of the atom.

Method Detail

getName

public java.lang.String getName()
Retrieve the atom's name.
Returns:
the atom's name.

getValue

public java.lang.Object getValue()
Retrieve the atom's value.
Returns:
the atom's value or null if no value has been set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

ABLE, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'