|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface specifying a generic attribute holding behavior. The important
characteristics are that attributes are identified by their names (String
type) and can hold many values (including zero), each one being an arbitrary
object.
Supported API: false
Extendable: false
Method Summary | |
void |
addValue(String attr_name,
Object value)
Adds value to attribute. |
Enumeration |
getAttrNames()
Returns all names of the attributes held by the object. |
Object |
getSingleValue(String attr_name)
Return one value associated with the attribute name. |
Enumeration |
getValues(String attr_name)
Returns the values associated with a given attribute name. |
void |
removeAttribute(String attr_name)
Removes an attribute from the object (with all its values). |
void |
removeValue(String attr_name,
Object value)
Removes a specific value from the attribute. |
void |
replaceValue(String attr_name,
Object value)
Replaces object for all the current values of the attribute. |
void |
setValue(String attr_name,
Object value)
Replaces object for all the current values of the attribute. |
String |
toString()
Creates string representation of the attribute holder. |
Method Detail |
public Enumeration getValues(String attr_name) throws WTException
attr_name
-
WTException
public Object getSingleValue(String attr_name) throws WTException
attr_name
-
WTException
public Enumeration getAttrNames() throws WTException
WTException
public void addValue(String attr_name, Object value) throws WTException
attr_name
- value
-
WTException
public void setValue(String attr_name, Object value) throws WTException
attr_name
- value
-
WTException
public void replaceValue(String attr_name, Object value) throws WTException
attr_name
- value
-
WTException
public void removeValue(String attr_name, Object value) throws WTException
attr_name
- value
-
WTException
public void removeAttribute(String attr_name) throws WTException
attr_name
-
WTException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |