|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.template.ParameterTemplate
A ParameterTemplate represents a template for a parameter that can be
used to generate a runtime parameter value for a report.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private String |
defaultValue
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
IS_MACRO_FLAG
|
static String |
IS_MACRO_SUFFIX
|
private boolean |
macro
|
private String |
name
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private String |
type
|
Constructor Summary | |
ParameterTemplate()
|
Method Summary | |
private void |
defaultValueValidate(String a_DefaultValue)
|
String |
getDefaultValue()
Gets the value of the attribute: defaultValue; A default value that can be used if no value is explicitly specified. |
String |
getName()
Gets the value of the attribute: name; Uniquely identifies the parameter. |
String |
getType()
Gets the value of the attribute: type; Specifies the type (Java language type) of the parameter value. |
Object |
getValue(Hashtable a_inputs)
Evaluates the ParameterTemplate using the user inputs to derive an actual parameter value. |
Object |
getValueWithNoDefaults(Hashtable a_inputs)
Evaluates the ParameterTemplate using only the user inputs (default value is not used) to derive an actual parameter value. |
boolean |
isMacro()
Gets the value of the attribute: macro; Indicates if the parameter value is a macro. |
private void |
nameValidate(String a_Name)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(ParameterTemplate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setDefaultValue(String a_DefaultValue)
Sets the value of the attribute: defaultValue; A default value that can be used if no value is explicitly specified. |
void |
setMacro(boolean a_Macro)
Sets the value of the attribute: macro; Indicates if the parameter value is a macro. |
void |
setName(String a_Name)
Sets the value of the attribute: name; Uniquely identifies the parameter. |
void |
setType(String a_Type)
Sets the value of the attribute: type; Specifies the type (Java language type) of the parameter value. |
private void |
typeValidate(String a_Type)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String name
private String defaultValue
private boolean macro
private String type
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String IS_MACRO_SUFFIX
private static final String IS_MACRO_FLAG
Constructor Detail |
public ParameterTemplate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ParameterTemplate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public String getName()
public void setName(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public String getDefaultValue()
public void setDefaultValue(String a_DefaultValue) throws WTPropertyVetoException
a_DefaultValue
-
WTPropertyVetoException
private void defaultValueValidate(String a_DefaultValue) throws WTPropertyVetoException
a_DefaultValue
-
WTPropertyVetoException
public boolean isMacro()
public void setMacro(boolean a_Macro) throws WTPropertyVetoException
a_Macro
-
WTPropertyVetoException
public String getType()
public void setType(String a_Type) throws WTPropertyVetoException
a_Type
-
WTPropertyVetoException
private void typeValidate(String a_Type) throws WTPropertyVetoException
a_Type
-
WTPropertyVetoException
public Object getValue(Hashtable a_inputs) throws WTException
a_inputs
-
WTException
public Object getValueWithNoDefaults(Hashtable a_inputs) throws WTException
a_inputs
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |