***  This interface provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.util
Interface AttributeMapInterface

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
AttributeMap

public interface AttributeMapInterface
extends java.rmi.Remote

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.

Since:
1.0

Method Summary
 void addAttribute(java.lang.String name, java.lang.String value)
          Add a value to existing name/value pair.
 java.lang.String getAttribute(java.lang.String name)
          Get the value for the specified name.
 java.lang.String[] getAttributes(java.lang.String name)
          Get all the values for the specified name.
 java.lang.String[] listAttributeNames()
          Returns an array of all the names.
 void setAttribute(java.lang.String name, java.lang.String value)
          Set the name/value pair.
 

Method Detail

getAttribute

java.lang.String getAttribute(java.lang.String name)
                              throws java.rmi.RemoteException
Get the value for the specified name. If there are multiple values for this name, it returns the first name that was added.

Parameters:
name - The name portion of the name/value pair.
Returns:
String The value.
Throws:
java.rmi.RemoteException - If a network anomaly is encountered.

getAttributes

java.lang.String[] getAttributes(java.lang.String name)
                                 throws java.rmi.RemoteException
Get all the values for the specified name. If no values exist for this name, an empty array is returned.

Parameters:
name - The name portion of the name/value pair.
Returns:
String[] An array of all values for the specified name.
Throws:
java.rmi.RemoteException - If a network anomaly is encountered.

setAttribute

void setAttribute(java.lang.String name,
                  java.lang.String value)
                  throws java.rmi.RemoteException,
                         java.lang.IllegalArgumentException
Set the name/value pair. Any existing value(s) will be cleared in favor of the new value.

Parameters:
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.
Throws:
java.lang.IllegalArgumentException - If a null or blank name is specified.
java.rmi.RemoteException - If a network anomaly is encountered.

addAttribute

void addAttribute(java.lang.String name,
                  java.lang.String value)
                  throws java.rmi.RemoteException,
                         java.lang.IllegalArgumentException
Add a value to existing name/value pair. This value is appended to the set of any existing values for the specified name. If this name does not already exist, the behavior is the same as setAttribute(String, String). The order is preserved between addAttribute and getAttributes(String).

Parameters:
name - The name portion of the name/value pair.
value - The value portion of the name/value pair.
Throws:
java.lang.IllegalArgumentException - If a null or blank name is specified.
java.rmi.RemoteException - If a network anomaly is encountered.

listAttributeNames

java.lang.String[] listAttributeNames()
                                      throws java.rmi.RemoteException
Returns an array of all the names.

Returns:
String [] An array of all the names.
Throws:
java.rmi.RemoteException - If a network anomaly is encountered.

***  This interface provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.