Package wt.query.template
Class ParameterTemplate
java.lang.Object
wt.query.template.ParameterTemplate
- All Implemented Interfaces:
Externalizable,Serializable
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
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the attribute: defaultValue; A default value that can be used if no value is explicitly specified.Gets the value of the attribute: enumerationIdentifier; EnumerationIdentifier is used for the display of enumeration dropdowns.Gets the value of the attribute: internalName; Internal Name is a version of Name that can be used as an HTML Id.getName()Gets the value of the attribute: name; Uniquely identifies the parameter.getType()Gets the value of the attribute: type; Specifies the type (Java language type) of the parameter value.Evaluates the ParameterTemplate using the user inputs to derive an actual parameter value.getValueWithNoDefaults(Hashtable a_inputs) Evaluates the ParameterTemplate using only the user inputs (default value is not used) to derive an actual parameter value.booleanisMacro()Gets the value of the attribute: macro; Indicates if the parameter value is a macro.voidsetDefaultValue(String a_DefaultValue) Sets the value of the attribute: defaultValue; A default value that can be used if no value is explicitly specified.voidsetEnumerationIdentifier(String a_EnumerationIdentifier) Sets the value of the attribute: enumerationIdentifier; EnumerationIdentifier is used for the display of enumeration dropdowns.voidsetInternalName(String a_InternalName) Sets the value of the attribute: internalName; Internal Name is a version of Name that can be used as an HTML Id.voidsetMacro(boolean a_Macro) Sets the value of the attribute: macro; Indicates if the parameter value is a macro.voidSets the value of the attribute: name; Uniquely identifies the parameter.voidSets the value of the attribute: type; Specifies the type (Java language type) of the parameter value.
-
Method Details
-
getName
Gets the value of the attribute: name; Uniquely identifies the parameter.
Supported API: true- Returns:
- String
-
setName
Sets the value of the attribute: name; Uniquely identifies the parameter.
Supported API: true- Parameters:
a_Name-- Throws:
WTPropertyVetoException
-
getInternalName
Gets the value of the attribute: internalName; Internal Name is a version of Name that can be used as an HTML Id.
Supported API: true- Returns:
- String
-
setInternalName
Sets the value of the attribute: internalName; Internal Name is a version of Name that can be used as an HTML Id.
Supported API: true- Parameters:
a_InternalName-- Throws:
WTPropertyVetoException
-
getEnumerationIdentifier
Gets the value of the attribute: enumerationIdentifier; EnumerationIdentifier is used for the display of enumeration dropdowns.
Supported API: true- Returns:
- String
-
setEnumerationIdentifier
Sets the value of the attribute: enumerationIdentifier; EnumerationIdentifier is used for the display of enumeration dropdowns.
Supported API: true- Parameters:
a_EnumerationIdentifier-- Throws:
WTPropertyVetoException
-
getDefaultValue
Gets the value of the attribute: defaultValue; A default value that can be used if no value is explicitly specified.
Supported API: true- Returns:
- String
-
setDefaultValue
Sets the value of the attribute: defaultValue; A default value that can be used if no value is explicitly specified.
Supported API: true- Parameters:
a_DefaultValue-- Throws:
WTPropertyVetoException
-
isMacro
public boolean isMacro()Gets the value of the attribute: macro; Indicates if the parameter value is a macro.
Supported API: true- Returns:
- boolean
-
setMacro
Sets the value of the attribute: macro; Indicates if the parameter value is a macro.
Supported API: true- Parameters:
a_Macro-- Throws:
WTPropertyVetoException
-
getType
Gets the value of the attribute: type; Specifies the type (Java language type) of the parameter value.
Supported API: true- Returns:
- String
-
setType
Sets the value of the attribute: type; Specifies the type (Java language type) of the parameter value.
Supported API: true- Parameters:
a_Type-- Throws:
WTPropertyVetoException
-
getValue
Evaluates the ParameterTemplate using the user inputs to derive an actual parameter value.
Supported API: true- Parameters:
a_inputs-- Returns:
- Object
- Throws:
WTException
-
getValueWithNoDefaults
Evaluates the ParameterTemplate using only the user inputs (default value is not used) to derive an actual parameter value.
Supported API: true- Parameters:
a_inputs-- Returns:
- Object
- Throws:
WTException
-