|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.parameters.AbstractParameter
public abstract class AbstractParameter
A simple parameter that represents a single value. This value is set by the user.
Method Summary | |
---|---|
Object |
clone()
|
Object |
getDefaultValue()
|
Object |
getDefaultValue(ParameterContext context)
|
String |
getName()
The internal parameter name. |
String |
getParameterAttribute(String domain,
String name)
|
String |
getParameterAttribute(String domain,
String name,
ParameterContext parameterContext)
Returns the parameter label. |
String[] |
getParameterAttributeNames(String domain)
|
String[] |
getParameterAttributeNamespaces()
|
String |
getRole()
|
Class |
getValueType()
Returns the parameter value type. |
boolean |
isDeprecated()
|
boolean |
isHidden()
|
boolean |
isMandatory()
Provides a hint to the parameter validator, whether this value needs to have a selected value. |
void |
setDefaultValue(Object defaultValue)
|
void |
setDeprecated(boolean deprecated)
|
void |
setHidden(boolean hidden)
|
void |
setMandatory(boolean mandatory)
|
void |
setParameterAttribute(String domain,
String name,
String value)
|
void |
setRole(String role)
|
void |
setValueType(Class valueType)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getName()
getName
in interface ParameterDefinitionEntry
public void setParameterAttribute(String domain, String name, String value)
public String getParameterAttribute(String domain, String name)
public String getParameterAttribute(String domain, String name, ParameterContext parameterContext)
ParameterDefinitionEntry
getParameterAttribute
in interface ParameterDefinitionEntry
domain
- the parameter domain (namespace)name
- the name of the parameter attributeparameterContext
- the context from where to aquire the locale for the label.
public String[] getParameterAttributeNamespaces()
getParameterAttributeNamespaces
in interface ParameterDefinitionEntry
public String[] getParameterAttributeNames(String domain)
getParameterAttributeNames
in interface ParameterDefinitionEntry
public boolean isMandatory()
isMandatory
in interface ParameterDefinitionEntry
public void setMandatory(boolean mandatory)
public Class getValueType()
getValueType
in interface ParameterDefinitionEntry
public void setValueType(Class valueType)
public Object getDefaultValue()
public Object getDefaultValue(ParameterContext context) throws ReportDataFactoryException
getDefaultValue
in interface ParameterDefinitionEntry
ReportDataFactoryException
public void setDefaultValue(Object defaultValue)
public Object clone() throws CloneNotSupportedException
clone
in interface ParameterDefinitionEntry
clone
in class Object
CloneNotSupportedException
public boolean isHidden()
public void setHidden(boolean hidden)
public boolean isDeprecated()
public void setDeprecated(boolean deprecated)
public String getRole()
public void setRole(String role)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |