|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
The AttributeMapInterface manages name/value pairs. A name/value can be specified as a name, a name and a value, or a name and multiple values.
Name/value pairs are used by the Publish services to provide user or application control information describing the result package or entry. Name/values can be associated with a result package, or with individual entries within the result package.
| Method Summary | |
void |
addAttribute(String name,
String value)
Add a value to existing name/value pair. |
String |
getAttribute(String name)
Get the value for the specified name. |
String[] |
getAttributes(String name)
Get all the values for the specified name. |
String[] |
listAttributeNames()
Returns an array of all the names. |
void |
setAttribute(String name,
String value)
Set the name/value pair. |
| Method Detail |
public String getAttribute(String name)
throws RemoteException
name - The name portion of the name/value pair.String The value.RemoteException - If a network anomaly is encountered.
public String[] getAttributes(String name)
throws RemoteException
name - The name portion of the name/value pair.String[] An array of all values for the specified name.RemoteException - If a network anomaly is encountered.
public void setAttribute(String name,
String value)
throws RemoteException,
IllegalArgumentException
name - The name portion of the name/value pair.value - The value portion of the name/value pair.
If this value is null, any
existing value(s) are removed for the name/value pair.IllegalArgumentException - If a null or blank name is specified.RemoteException - If a network anomaly is encountered.
public void addAttribute(String name,
String value)
throws RemoteException,
IllegalArgumentException
setAttribute(String, String).
The order is preserved between addAttribute and getAttributes(String).
name - The name portion of the name/value pair.value - The value portion of the name/value pair.IllegalArgumentException - If a null or blank name is specified.RemoteException - If a network anomaly is encountered.
public String[] listAttributeNames()
throws RemoteException
String [] An array of all the names.RemoteException - If a network anomaly is encountered.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||