|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.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(java.lang.Object o)
Tests if two ParameterCollections have equal parameters (in the same order) |
IContext |
getContext()
Gets the context associated with this parameter collection |
java.util.Iterator |
getDisplayParameters()
Iterates over the parameters in this context which should be displayed to the user. |
protected java.util.List |
getNamedParametersInternal(java.lang.String parameterName)
Gets a list of parameters which have the specified name. |
IParameter |
getParameter(int index)
Gets a parameter by its index. |
IParameter |
getParameter(int pIndex,
boolean pCreate)
Gets a parameter by its index. |
IParameter |
getParameter(java.lang.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(java.lang.Class paramClass)
Gets the number of parameters present in this context which are of the specified class (or are subclasses of the specified class) |
protected IParameter |
getParameterInternal(java.lang.String parameterId)
Gets a parameter by its its context specific id, or by its named index. |
Row |
getParameterRow()
Gets the Row to which parameters in this ParameterCollection may choose to be a part of. |
java.util.List |
getParameters()
Gets an unmodifiable List of this collection's IParameter objects (in order). |
java.util.Iterator |
getParameters(java.lang.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. |
java.util.List |
getParameters(java.lang.String parameterId)
Gets parameters by their context specific id, or by their name, or by a named index. |
protected java.util.List |
getParametersInternal()
Gets a List of this collection's IParameter objects (in order). |
int |
hashCode()
Gets a hashCode based on the hashCodes of the contained parameters |
void |
setParameterValues(java.lang.String parameterId,
java.lang.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 |
java.lang.String |
toString()
Returns a String representation of this object |
Methods inherited from class java.lang.Object |
clone, finalize, 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(java.lang.Object o)
public IContext getContext()
public java.util.Iterator getDisplayParameters()
protected java.util.List getNamedParametersInternal(java.lang.String parameterName)
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(java.lang.String parameterId)
public int getParameterCount()
public int getParameterCount(java.lang.Class paramClass)
protected IParameter getParameterInternal(java.lang.String parameterId)
public Row getParameterRow() throws CMException
CMException
public java.util.List getParameters()
public java.util.Iterator getParameters(java.lang.Class paramType)
public java.util.List getParameters(java.lang.String parameterId)
protected java.util.List getParametersInternal()
public int hashCode()
public void setParameterValues(java.lang.String parameterId, java.lang.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 java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |