|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--weblogic.common.ParamSet
A ParamSet object is used to set parameters for events and remote procedures. A ParamSet contains ParamValues, which are accessible by keyname and index position.
A ParamSet keyname with its corresponding ParamValue makes up the name/value pair used by events, event registrations, evaluators, and actions.
Conversions among the various datatypes are handled automatically in a "Java" way, i.e., the conversion can be accomplished either of these ways:
float f = 1.2; int i = (int) f;
boolean b = Boolean.booleanValue("t");
ParamValue, Serialized Form| Field Summary | |
boolean |
trap
|
| Constructor Summary | |
ParamSet()
Constructs a ParamSet. |
|
ParamSet(int i)
Constructs a ParamSet with the specified number of parameters. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones a ParamSet. |
ParamValue |
declareParam(java.lang.String name,
int datatype)
Declares the specified name and data type as a IN/OUT parameter and returns it as a ParamValue. |
ParamValue |
declareParam(java.lang.String name,
int datatype,
java.lang.String desc)
Declares the specified name, data type, and description as a IN/OUT parameter and returns it as a ParamValue. |
void |
destroy()
Destroys a ParamSet. |
java.lang.String |
display()
Displays a string representation of a ParamSet. |
java.lang.String |
dump()
Dumps the contents of a ParamSet into string form. |
ParamValue |
get(int i)
Gets the ParamValue at the specified index into the ParamSet. |
java.lang.String[] |
getNames()
Gets the names of the ParamValues in a ParamSet. |
ParamValue |
getParam(java.lang.String key)
Gets the ParamValue in a ParamSet that matches the specified keyname. |
ParamValue |
getParam(java.lang.String key,
int index)
Gets the ParamValue that matches the specified keyname and at the specified index position into a vector of ParamValues. |
ParamValue |
getValue(java.lang.String key)
Gets the ParamValue object for the specified keyname. |
void |
initialize()
Initializes a ParamSet. |
boolean |
isEmpty()
Determines whether a ParamSet is empty. |
void |
print(java.io.PrintStream out)
Prints a ParamSet to a PrintStream. |
void |
readExternal(java.io.ObjectInput in)
Internal use only. |
ParamValue |
setParam(java.lang.String key,
boolean v)
Sets a ParamValue at the specified keyname to the specified Boolean data type. |
ParamValue |
setParam(java.lang.String key,
byte v)
Sets a ParamValue at the specified keyname to the specified byte data type. |
ParamValue |
setParam(java.lang.String key,
byte i,
int v)
Sets the ParamValue, at the specified byte in a vector of ParamValues that correspond to the specified keyname, to the specified integer data type. |
ParamValue |
setParam(java.lang.String key,
char v)
Sets a ParamValue at the specified keyname to the specified char data type. |
ParamValue |
setParam(java.lang.String key,
java.util.Date v)
Sets a ParamValue at the specified keyname to the specified date data type. |
ParamValue |
setParam(java.lang.String key,
double v)
Sets a ParamValue at the specified keyname to the specified double data type. |
ParamValue |
setParam(java.lang.String key,
float v)
Sets a ParamValue at the specified keyname to the specified float data type. |
ParamValue |
setParam(java.lang.String key,
int v)
Sets a ParamValue at the specified keyname to the specified integer data type. |
ParamValue |
setParam(java.lang.String key,
int i,
boolean v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified Boolean data type. |
ParamValue |
setParam(java.lang.String key,
int i,
char v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified char data type. |
ParamValue |
setParam(java.lang.String key,
int i,
java.util.Date v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified date data type. |
ParamValue |
setParam(java.lang.String key,
int i,
double v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified double data type. |
ParamValue |
setParam(java.lang.String key,
int i,
float v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified float data type. |
ParamValue |
setParam(java.lang.String key,
int i,
int v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified integer data type. |
ParamValue |
setParam(java.lang.String key,
int i,
long v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified long data type. |
ParamValue |
setParam(java.lang.String key,
int i,
java.lang.Object v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified Object data type. |
ParamValue |
setParam(java.lang.String key,
int i,
ParamValue v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified ParamValue. |
ParamValue |
setParam(java.lang.String key,
int i,
short v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified short data type. |
ParamValue |
setParam(java.lang.String key,
int i,
java.lang.String v)
Sets the ParamValue, at the specified index into a vector of ParamValues that correspond to the specified keyname, to the specified string data type. |
ParamValue |
setParam(java.lang.String key,
long v)
Sets a ParamValue at the specified keyname to the specified long data type. |
ParamValue |
setParam(java.lang.String key,
java.lang.Object v)
Sets a ParamValue at the specified keyname to the specified object, which should implement java.io.Serializable. |
ParamValue |
setParam(java.lang.String key,
ParamValue v)
Sets a ParamValue at the specified keyname to the specified ParamValue. |
ParamValue |
setParam(java.lang.String key,
short v)
Sets a ParamValue at the specified keyname to the specified short data type. |
ParamValue |
setParam(java.lang.String key,
java.lang.String v)
Sets a ParamValue at the specified keyname to the specified string data type. |
void |
setParam(java.lang.String keyNames,
java.lang.String keyValues,
ParamSet that)
Sets the names and values of a ParamSet according to the names and values of another specified ParamSet. |
void |
setParams(ParamSet that)
Sets the values of a ParamSet according to the values in another specified ParamSet. |
int |
size()
Returns the number of parameters in a ParamSet. |
java.lang.String |
toString()
Returns a string representation of a ParamSet. |
int |
used()
Returns number of parameters in use in a ParamSet. |
void |
writeExternal(java.io.ObjectOutput out)
Internal use only. |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public boolean trap
| Constructor Detail |
public ParamSet(int i)
i - Integer valuepublic ParamSet()
| Method Detail |
public void initialize()
public void destroy()
public int size()
public int used()
public boolean isEmpty()
public ParamValue getValue(java.lang.String key)
key - String keynamepublic ParamValue get(int i)
i - Integer value
public ParamValue declareParam(java.lang.String name,
int datatype,
java.lang.String desc)
throws ParamSetException
name - Parameter namedatatype - Data type from weblogic.common.ParamTypesdesc - Parameter description
public ParamValue declareParam(java.lang.String name,
int datatype)
throws ParamSetException
name - Parameter namedatatype - Data type from weblogic.common.ParamTypes
public ParamValue getParam(java.lang.String key)
throws ParamSetException
key - Keyname to match
public ParamValue getParam(java.lang.String key,
int index)
throws ParamSetException
key - String to matchindex - Index position
public void setParams(ParamSet that)
throws ParamSetException
that - ParamSet to move values from
public void setParam(java.lang.String keyNames,
java.lang.String keyValues,
ParamSet that)
throws ParamSetException
keyNames - Name of keynameskeyValues - Name of valuesthat - ParamSet to move names and values from
public ParamValue setParam(java.lang.String key,
ParamValue v)
throws ParamSetException
key - Keyname to setv - ParamValue to be copied
public ParamValue setParam(java.lang.String key,
double v)
throws ParamSetException
key - Keyname to setv - Double data type
public ParamValue setParam(java.lang.String key,
float v)
throws ParamSetException
key - Keyname to setv - Float data type
public ParamValue setParam(java.lang.String key,
long v)
throws ParamSetException
key - Keyname to setv - Long data type
public ParamValue setParam(java.lang.String key,
int v)
throws ParamSetException
key - Keyname to setv - Integer data type
public ParamValue setParam(java.lang.String key,
short v)
throws ParamSetException
key - Keyname to setv - Short data type
public ParamValue setParam(java.lang.String key,
byte v)
throws ParamSetException
key - Keyname to setv - Byte data type
public ParamValue setParam(java.lang.String key,
boolean v)
throws ParamSetException
key - Keyname to setv - Boolean data type
public ParamValue setParam(java.lang.String key,
char v)
throws ParamSetException
key - Keyname to setv - Char data type
public ParamValue setParam(java.lang.String key,
java.lang.String v)
throws ParamSetException
key - Keyname to setv - String data type
public ParamValue setParam(java.lang.String key,
java.util.Date v)
throws ParamSetException
key - Keyname to setv - Date data type
public ParamValue setParam(java.lang.String key,
java.lang.Object v)
throws ParamSetException
key - Keyname to setv - Serializable data type
public ParamValue setParam(java.lang.String key,
int i,
ParamValue v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - ParamValue object to be set
public ParamValue setParam(java.lang.String key,
int i,
double v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - Double data type
public ParamValue setParam(java.lang.String key,
int i,
float v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - Float data type
public ParamValue setParam(java.lang.String key,
int i,
long v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - Long data type
public ParamValue setParam(java.lang.String key,
int i,
int v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - Integer data type
public ParamValue setParam(java.lang.String key,
int i,
short v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - Short data type
public ParamValue setParam(java.lang.String key,
byte i,
int v)
throws ParamSetException
key - Keyname to seti - Byte in a vector of ParamValuesv - Integer data type
public ParamValue setParam(java.lang.String key,
int i,
boolean v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - Boolean data type
public ParamValue setParam(java.lang.String key,
int i,
char v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - Char data type
public ParamValue setParam(java.lang.String key,
int i,
java.lang.String v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - String data type
public ParamValue setParam(java.lang.String key,
int i,
java.util.Date v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - Date data type
public ParamValue setParam(java.lang.String key,
int i,
java.lang.Object v)
throws ParamSetException
key - Keyname to seti - Index into a vector of ParamValuesv - Object data typepublic java.lang.Object clone()
public java.lang.String toString()
public java.lang.String dump()
public java.lang.String display()
public void print(java.io.PrintStream out)
out - PrintStream
public java.lang.String[] getNames()
throws ParamSetException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||