| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--bill.util.persist.ElementData
This class is used to define an element and to manipulate its data.
| Field Summary | |
protected  Hashtable | 
_elementData
Storage place for extra data about an element.  | 
protected  String | 
_logicalName
 | 
protected  String | 
_physicalName
 | 
protected  boolean | 
_required
 | 
protected  Object | 
_value
 | 
| Constructor Summary | |
ElementData()
Default creator, initializes all the class instance variables.  | 
|
ElementData(String logicalName,
            String physicalName)
Alternate creator, sets class instance variables using the passed parameters and initializes the other instance variables.  | 
|
| Method Summary | |
 Object | 
addElementData(Object key,
               Object result)
Adds an entry to the element's collection of associated data.  | 
 boolean | 
equals(Object other)
Determines if two ElementData objects are equal.  | 
 String | 
formatValue()
Formats an element's value into a string representation.  | 
 Hashtable | 
getElementData()
Retrieves the collection of additional data associated with this element.  | 
 String | 
getLogicalName()
Retrieves the descriptive, logical name of the element.  | 
 String | 
getPhysicalName()
Retrieves the physical name of the element.  | 
 Object | 
getValue()
Retrieves the value of the element.  | 
 boolean | 
isRequired()
Checks if the element is required.  | 
 Object | 
removeElementData(Object key)
Removes the specified entry from the element's collection of associated data.  | 
 void | 
setElementData(Hashtable elementData)
Setter for the additional collection of data associated with this element.  | 
 void | 
setLogicalName(String logicalName)
Sets the descriptive logical name of the element.  | 
 void | 
setPhysicalName(String physicalName)
Sets the physical name of the element.  | 
 void | 
setRequired(boolean required)
Sets the required indicator for this element.  | 
 void | 
setValue(Object value)
Sets the value of this element to the specified value.  | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected String _logicalName
protected String _physicalName
protected Object _value
protected boolean _required
protected Hashtable _elementData
| Constructor Detail | 
public ElementData()
public ElementData(String logicalName,
                   String physicalName)
logicalName - Descriptive logical name of the element.physicalName - Physical name of the element, in the case of
 an RDBMS this would be the table column name of the element.| Method Detail | 
public void setLogicalName(String logicalName)
logicalName - The descriptive name.public void setPhysicalName(String physicalName)
physicalName - The physical name.public void setElementData(Hashtable elementData)
elementData - The additional collection of data.
public void setValue(Object value)
              throws PersistException
value - The value to set the element's value to.PersistException - Thrown when the value cannot be properly set.public void setRequired(boolean required)
required - The value to set the element's required indicator to.public String getLogicalName()
public String getPhysicalName()
public Hashtable getElementData()
public Object getValue()
public boolean isRequired()
public Object addElementData(Object key,
                             Object result)
key - The key to the associated data entry.result - The value to the associated data entry.result object.public Object removeElementData(Object key)
key - The key to the associated data entry to be removed.public String formatValue()
public boolean equals(Object other)
equals in class Objecttrue, otherwise returns
 false.public String toString()
toString in class Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||