public class ExpressionMap
extends java.lang.Object
implements java.util.Map
ExpressionMap class implements the Map
interface such that the key must be a non-null String
and the value must be an instance of Expression. This
class is used in First-Use Assembly, where the parameters identifying
referenced processing can be, in the general case, expressions that might
need to be evaluated at runtime.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
| Constructor and Description |
|---|
ExpressionMap()
Default constructor.
|
ExpressionMap(java.util.Map aMap)
'Copy' constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all associations from the collection.
|
boolean |
containsKey(java.lang.Object aName)
Identifies whether there is an association for the specified name.
|
boolean |
containsValue(java.lang.Object aValue)
Identifies whether this map maps one or more keys to the specified value.
|
java.util.Set |
entrySet()
Returns a set view of the mappings contained in this instance.
|
boolean |
equals(java.lang.Object aObject)
Compares the specified object with this map for equality.
|
java.lang.Object |
get(java.lang.Object aName)
Identifies the value, if any, that is associated with the specified name.
|
Expression |
getExpression(java.lang.String aName)
Identifies the
Expression, if any, that is associated with
the specified name. |
int |
hashCode()
Returns the hash code value for this instance, which will be the hashCode
value of the underlying
java.util.HashMap. |
boolean |
isEmpty()
Inicates whether this map contains no name-value associations.
|
java.util.Set |
keySet()
Returns a set view of the keys (names) contained in this instance.
|
java.lang.Object |
put(java.lang.Object aName,
java.lang.Object aValue)
Associates the specified value with the specified name in this instance,
provided that the name is a non-
null String and the value is
an instance of Expression. |
void |
putAll(java.util.Map aMap)
Copies all conforming mappings from the specified
Map to
this instance. |
void |
putExpression(java.lang.String aName,
Expression aValue)
Associates the specified
Expression with the specified name
in this instance. |
java.lang.Object |
remove(java.lang.Object aName)
Removes any association for this name from this instance.
|
int |
size()
Returns the number of name-value mappings in this instance.
|
java.util.Collection |
values()
Returns a collection view of the values contained in this instance.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
public ExpressionMap()
public ExpressionMap(java.util.Map aMap)
aMap - the Map to be copiedjava.lang.ClassCastException - if an entry in aMap is encountered for which
either its key or value is of an inappropriate typejava.lang.NullPointerException - if an entry in aMap is encountered for which
either its key or value is nullpublic Expression getExpression(java.lang.String aName)
Expression, if any, that is associated with
the specified name.aName - name whose associated Expression is to be
returnedExpression associated with the specified name,
or null if this instance includes no association for the
specified namepublic void putExpression(java.lang.String aName,
Expression aValue)
Expression with the specified name
in this instance. Any previous association for this name is replaced.aName - name with which the specified Expression is to
be associatedaValue - Expression to be associated with the specified
namejava.lang.NullPointerException - if either argument is nullpublic void clear()
clear in interface java.util.Mappublic boolean containsKey(java.lang.Object aName)
containsKey in interface java.util.MapaName - name whose presence is to be testedtrue when this instance includes an association
for this namepublic boolean containsValue(java.lang.Object aValue)
containsValue in interface java.util.MapaValue - value whose presence is to be testedtrue when this instance associates this value with
at least one namepublic java.util.Set entrySet()
entrySet in interface java.util.Mappublic boolean equals(java.lang.Object aObject)
equals in interface java.util.Mapequals in class java.lang.ObjectaObject - true when this instance is equivalent to the
specified objectpublic java.lang.Object get(java.lang.Object aName)
get in interface java.util.MapaName - name whose associated value is to be returnednull if this instance includes no association for this namepublic int hashCode()
java.util.HashMap.hashCode in interface java.util.MaphashCode in class java.lang.Objectpublic boolean isEmpty()
isEmpty in interface java.util.Maptrue when this instance contains no name-value
associationspublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.lang.Object put(java.lang.Object aName,
java.lang.Object aValue)
null String and the value is
an instance of Expression. Any previous association for
this name is replaced.put in interface java.util.MapaName - name with which the specified value is to be associatedaValue - value to be associated with the specified namenull if there
was nonejava.lang.ClassCastException - if either argument is of an inappropriate
typejava.lang.NullPointerException - if either argument is nullpublic void putAll(java.util.Map aMap)
Map to
this instance. Entries in the specified Map are ignored
if the key is not a String or if the value does not identify
a String.putAll in interface java.util.MapaMap - the Map to be copiedjava.lang.ClassCastException - if an entry in aMap is encountered for which
either its key or value is of an inappropriate typejava.lang.NullPointerException - if an entry in aMap is encountered for which
either its key or value is nullpublic java.lang.Object remove(java.lang.Object aName)
remove in interface java.util.MapaName - name to be removed from this instancenull if there
was nonepublic int size()
size in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.MapCopyright © 2014 Pegasystems Inc. All Rights Reserved.