|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--com.sas.services.util.AttributeMap
Represents the 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.
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
AttributeMap()
Constructor. |
|
| Method Summary | |
void |
addAttribute(String name,
String value)
Add a value to existing name/value pair. |
static boolean |
applyFilter(String filter,
AttributeMapInterface attr)
Apply a filter string to the specified name/value pairs to determine if there is a match. |
static String |
buildValue(String[] values)
Takes the values of a name/value pair, and builds the appropriate value String. |
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. |
static AttributeMapInterface |
parseNameValuePairs(AttributeMapInterface attrMap,
String nameValuePairs)
Parses a name/value pairs string. |
static AttributeMapInterface |
parseValues(AttributeMapInterface attrMap,
String name,
String values)
Parses a name/value pairs string. |
void |
setAttribute(String name,
String value)
Set the name/value pair. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AttributeMap()
throws RemoteException
RemoteException - if unable to export a remote object to the RMI system.| Method Detail |
public String getAttribute(String name)
throws RemoteException
getAttribute in interface AttributeMapInterfacename - 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
getAttributes in interface AttributeMapInterfacename - 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
setAttribute in interface AttributeMapInterfacename - 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).
addAttribute in interface AttributeMapInterfacename - 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
listAttributeNames in interface AttributeMapInterfaceSet An array of all the names.RemoteException - If a network anomaly is encountered.
public static AttributeMapInterface parseNameValuePairs(AttributeMapInterface attrMap,
String nameValuePairs)
throws ParseException
attrMap - The AttributeMapInterface to continue to build with the parsed name/value pairs.
This may be null. If null, a new attribute
map will be created and returned. If not null, the
existing map will be updated and returned.nameValuePairs - The name/value string to parse.ParseException - If an error occurs during parsing.
public static AttributeMapInterface parseValues(AttributeMapInterface attrMap,
String name,
String values)
throws ParseException
attrMap - The AttributeMapInterface to continue to build with the parsed name/value pairs.
This may be null. If null, a new attribute
map will be created and returned. If not null, the
existing map will be updated and returned.name - The name to parse.values - Values to be parsed.ParseException - If an error occurs during parsing.
public static String buildValue(String[] values)
throws ParseException
values - The array of values for this name/value specificationStringThe constructed values string. This may
be null.ParseException - If an error is encountered building the value string.
public static boolean applyFilter(String filter,
AttributeMapInterface attr)
throws ParseException
filter - Filter to be applied.attr - Map of attributes.boolean Returns true
if the name/value filter matches the name/value pair specification;
otherwise if there is not match, false is returned.ParseException - If an error occurs parsing the name/value filter.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||