public interface StringMap
extends java.util.Map
StringMap interface specializes the Map
interface with the expectation that both the key and value will
be String instances. This supports our 'typical' usage -- to
supply String values identified by name -- while remaining
consistent with the more general Java-defined interface.
It is expected that most implementations will limit what names may be used and, possibly, what values may be associated with them.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getString(java.lang.String aName)
Identifies the value, if any, that is associated with the specified name.
|
void |
putString(java.lang.String aName,
java.lang.String aValue)
Establishes an association between the specified value and the specified name
(optional operation).
|
java.lang.String |
toString()
Returns a string representation of the key/value pairs in this StringMap object.
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
java.lang.String getString(java.lang.String aName)
aName - name whose associated value is to be returnedString value associated with the specified name,
or null if this instance includes no association for this namevoid putString(java.lang.String aName,
java.lang.String aValue)
aName - name with which the specified value is to be associatedaValue - value to be associated with the specified namejava.lang.IllegalArgumentException - if some aspect of this name or value
prevents it from being stored in this instancejava.lang.NullPointerException - if either the name or the value is
null and is not allowed to be by the implementationjava.lang.UnsupportedOperationException - if putString is not
supported by this implementationjava.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 Pegasystems Inc. All Rights Reserved.