|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.dataengine.parameter.ParameterCollection
A Collection of IParameter objects. IParameter objects can be retrieved either by their ID, or by their index (which is determined by the order in which they were added to this collection)
Constructor Summary | |
ParameterCollection(IContext context)
Creates a new ParameterCollection |
Method Summary | |
void |
addParameter(IParameter param)
Adds a parameter to this collection. |
void |
clear()
Removes all parameters from this collection |
ParameterCollection |
cloneParameterCollection()
Clones this parameter collection |
ParameterCollection |
cloneParameterCollection(IContext context)
Clones this parameter collection. |
boolean |
equals(Object o)
Tests if two ParameterCollections have equal parameters (in the same order) |
IContext |
getContext()
Gets the context associated with this parameter collection |
Iterator |
getDisplayParameters()
Iterates over the parameters in this context which should be displayed to the user. |
IParameter |
getParameter(int index)
Gets a parameter by its index. |
IParameter |
getParameter(int pIndex,
boolean pCreate)
Gets a parameter by its index. |
IParameter |
getParameter(String parameterId)
Gets a parameter by its its context specific id, or by its name, or by a named index. |
int |
getParameterCount()
Gets the number of parameters present in this context (same as the size()) method |
int |
getParameterCount(Class paramClass)
Gets the number of parameters present in this context which are of the specified class (or are subclasses of the specified class) |
List |
getParameters()
Gets an unmodifiable List of this collection's IParameter objects (in order). |
Iterator |
getParameters(Class paramType)
Iterates over the parameters in this collection (in order) which are of the specified Java type, or are subclasses of the specified Java type. |
List |
getParameters(String parameterId)
Gets parameters by their context specific id, or by their name, or by a named index. |
int |
hashCode()
Gets a hashCode based on the hashCodes of the contained parameters |
void |
setParameterValues(String parameterId,
Object value)
Sets the value of parameters in this ParameterCollection |
void |
shadowize()
Converts all parameters in this collection to shadow parameters. |
int |
size()
Gets the number of parameters present in this context (Same as the getParameterCount()) method |
String |
toString()
Returns a String representation of this object |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ParameterCollection(IContext context)
Method Detail |
public void addParameter(IParameter param) throws CMException
CMException
public void clear()
public ParameterCollection cloneParameterCollection()
public ParameterCollection cloneParameterCollection(IContext context)
context
- An optional parameter; if this is not null, then all of the cloned parameters in this
collection will have their contexts set to the specified context.THE SPECIFIED CONTEXT MUST BE A CLONE
OF THE PARAMETERS' EXISTING CONTEXTpublic boolean equals(Object o)
equals
in class Object
public IContext getContext()
public Iterator getDisplayParameters()
public IParameter getParameter(int index)
public IParameter getParameter(int pIndex, boolean pCreate)
pIndex
- The zero based index of the parameter to getpCreate
- If this is true and no parameter with the specified index exists, a ShadowParameter will
be created at the specified index and returned.public IParameter getParameter(String parameterId)
public int getParameterCount()
public int getParameterCount(Class paramClass)
public List getParameters()
public Iterator getParameters(Class paramType)
public List getParameters(String parameterId)
public int hashCode()
hashCode
in class Object
public void setParameterValues(String parameterId, Object value) throws CMException
parameterId
- A String which identifies the parameters whose values will be set. This String can either be
a context specific id, a name, or by a named index.
The context specific id looks like ¤3¿ or ¤0¿
The parameter name is the string corresponding to the parameter's key or column (e.g. BALANCE or VAL)
A parameter name may correspond to multiple parameters, in which case all of these parameters will have their
values set by this method
The named index is the string "_parm" with the parameter's index appended on the end (e.g. _parm0 or _parm2)value
- The value to set parameters to
CMException
public void shadowize()
public int size()
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |