|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pega.pegarules.pub.generator.ExpressionMap
public class ExpressionMap
The 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
ExpressionMap()
Default constructor. |
|
ExpressionMap(java.util.Map aMap)
'Copy' constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
Constructor Detail |
---|
public ExpressionMap()
public ExpressionMap(java.util.Map aMap)
aMap
- the Map
to be copied
java.lang.ClassCastException
- if an entry in aMap is encountered for which
either its key or value is of an inappropriate type
java.lang.NullPointerException
- if an entry in aMap is encountered for which
either its key or value is null
Method Detail |
---|
public Expression getExpression(java.lang.String aName)
Expression
, if any, that is associated with
the specified name.
aName
- name whose associated Expression
is to be
returned
Expression
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
name
java.lang.NullPointerException
- if either argument is null
public void clear()
clear
in interface java.util.Map
public boolean containsKey(java.lang.Object aName)
containsKey
in interface java.util.Map
aName
- name whose presence is to be tested
true
when this instance includes an association
for this namepublic boolean containsValue(java.lang.Object aValue)
containsValue
in interface java.util.Map
aValue
- value whose presence is to be tested
true
when this instance associates this value with
at least one namepublic java.util.Set entrySet()
entrySet
in interface java.util.Map
public boolean equals(java.lang.Object aObject)
equals
in interface java.util.Map
equals
in class java.lang.Object
aObject
-
true
when this instance is equivalent to the
specified objectpublic java.lang.Object get(java.lang.Object aName)
get
in interface java.util.Map
aName
- name whose associated value is to be returned
null
if this instance includes no association for this namepublic int hashCode()
java.util.HashMap
.
hashCode
in interface java.util.Map
hashCode
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface java.util.Map
true
when this instance contains no name-value
associationspublic java.util.Set keySet()
keySet
in interface java.util.Map
public 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.Map
aName
- name with which the specified value is to be associatedaValue
- value to be associated with the specified name
null
if there
was none
java.lang.ClassCastException
- if either argument is of an inappropriate
type
java.lang.NullPointerException
- if either argument is null
public 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.Map
aMap
- the Map
to be copied
java.lang.ClassCastException
- if an entry in aMap is encountered for which
either its key or value is of an inappropriate type
java.lang.NullPointerException
- if an entry in aMap is encountered for which
either its key or value is null
public java.lang.Object remove(java.lang.Object aName)
remove
in interface java.util.Map
aName
- name to be removed from this instance
null
if there
was nonepublic int size()
size
in interface java.util.Map
public java.util.Collection values()
values
in interface java.util.Map
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |