| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--us.openinternet.luge.valueobject.ValueObject
The ValueObject class is the abstract class that PersonVO and GroupVO extend
| Constructor Summary | |
ValueObject()
 | 
|
ValueObject(java.util.Hashtable ht)
Use this constructor to load initial attribute:value data or you can use the empty constructor and the method setAllAttributes(Hashtable ht)  | 
|
| Method Summary | |
 void | 
addValueToAttribute(java.lang.String attrName,
                    java.lang.String attrVal)
Adds a value to the attribute specified.  | 
 boolean | 
appendAttributes(java.util.Hashtable newAttrs)
Adds a Hashtable of attribute:value pairs wiping out the old attributes if they overlap.  | 
 java.util.Hashtable | 
getAllAttributes()
This method returns a Hashtable of all the underlying attributes and values.  | 
 java.util.ArrayList | 
getAttributeNames()
Obtain a sorted ArrayList with each attribute name present for this ValueObject.  | 
 java.lang.String | 
getAttributeValue(java.lang.String attrName)
Use this method to return the value of a single-valued attribute.  | 
 java.util.ArrayList | 
getMultiValuedAttribute(java.lang.String attrName)
Obtain an ArrayList of all the attribute values for the attribute named in the parameter.  | 
 void | 
setAllAttributes(java.util.Hashtable newAttrs)
This method erases the underlying data, and sets all of the attributes for this object in one fell swoop.  | 
 void | 
setAttributeValue(java.lang.String attrName,
                  java.lang.String attrVal)
Set one attribute, with the name specified, to the value specified.  | 
 void | 
setAttributeValues(java.lang.String attrName,
                   java.lang.Object attrVals)
This method is used to handle multi-valued attributes.  | 
 int | 
size()
Returns the number of attribute mappings present  | 
 java.lang.String | 
toString()
This method prints the underlying attributes and values.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public ValueObject()
public ValueObject(java.util.Hashtable ht)
| Method Detail | 
public java.util.ArrayList getAttributeNames()
public java.lang.String getAttributeValue(java.lang.String attrName)
getMultiValuedAttribute method.
 
- Parameters:
 attrName - -- The attribute whose value you want to see
- Returns:
 - -- Value of the attribute.
 
 
public java.util.ArrayList getMultiValuedAttribute(java.lang.String attrName)
attrName - -- The attribute whose values you wish to see.
public java.util.Hashtable getAllAttributes()
public void setAllAttributes(java.util.Hashtable newAttrs)
public boolean appendAttributes(java.util.Hashtable newAttrs)
public void setAttributeValue(java.lang.String attrName,
                              java.lang.String attrVal)
attrName - -- The name of the attribute to setattrVal - -- The value to set in this attribute
public void setAttributeValues(java.lang.String attrName,
                               java.lang.Object attrVals)
attrName - -- The name of the attribute to set.attrVals - -- The values to set for this attribute. Post either ArrayList, ArrayList, 
 String[] or String to set a value, or null to remove a 
 value
public void addValueToAttribute(java.lang.String attrName,
                                java.lang.String attrVal)
attrName - -- The name of the attribute to setattrVal - -- The value to add to this attributepublic int size()
public java.lang.String toString()
toString in class java.lang.Object
  | 
Copyright 2003, Michael Schwartz All Rights Reserved. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||