Package com.aspectran.core.util.apon
Class AbstractParameters
- java.lang.Object
-
- com.aspectran.core.util.apon.AbstractParameters
-
- All Implemented Interfaces:
Parameters
- Direct Known Subclasses:
ActionParameters
,AdviceActionParameters
,AdviceParameters
,AppendParameters
,AspectParameters
,AspectranConfig
,AspectranParameters
,BeanParameters
,CallParameters
,ChooseParameters
,ChooseWhenParameters
,CommandParameters
,ConstructorParameters
,ContentParameters
,ContentsParameters
,ContextAutoReloadConfig
,ContextConfig
,ContextProfilesConfig
,DaemonConfig
,DaemonPollerConfig
,DefaultSettingsParameters
,DispatchParameters
,EnvironmentParameters
,ExceptionParameters
,ExceptionThrownParameters
,ExposalsConfig
,FilterParameters
,ForwardParameters
,ItemHolderParameters
,ItemParameters
,JoinpointParameters
,PointcutParameters
,PointcutQualifierParameters
,RedirectParameters
,RequestParameters
,ResponseParameters
,RootParameters
,ScheduledJobParameters
,ScheduleParameters
,SchedulerConfig
,SchedulerParameters
,SessionConfig
,SessionFileStoreConfig
,ShellConfig
,TemplateParameters
,TransformParameters
,TransletParameters
,TriggerParameters
,VariableParameters
,WebConfig
public abstract class AbstractParameters extends java.lang.Object implements Parameters
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractParameters(ParameterDefinition[] parameterDefinitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearValue(ParameterDefinition parameterDefinition)
void
clearValue(java.lang.String name)
java.lang.String
describe()
java.lang.String
describe(boolean details)
java.lang.Boolean
getBoolean(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.boolean
getBoolean(ParameterDefinition parameterDefinition, boolean defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.Boolean
getBoolean(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.boolean
getBoolean(java.lang.String name, boolean defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.Boolean[]
getBooleanArray(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.Boolean[]
getBooleanArray(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.Boolean>
getBooleanList(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.Boolean>
getBooleanList(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.Double
getDouble(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.double
getDouble(ParameterDefinition parameterDefinition, double defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.Double
getDouble(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.double
getDouble(java.lang.String name, double defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.Double[]
getDoubleArray(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.Double[]
getDoubleArray(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.Double>
getDoubleList(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.Double>
getDoubleList(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.Float
getFloat(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.float
getFloat(ParameterDefinition parameterDefinition, float defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.Float
getFloat(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.float
getFloat(java.lang.String name, float defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.Float[]
getFloatArray(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.Float[]
getFloatArray(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.Float>
getFloatList(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.Float>
getFloatList(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.Parameter
getIdentifier()
Returns the identifierParameter
.java.lang.Integer
getInt(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.int
getInt(ParameterDefinition parameterDefinition, int defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.Integer
getInt(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.int
getInt(java.lang.String name, int defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.Integer[]
getIntArray(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.Integer[]
getIntArray(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.Integer>
getIntList(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.Integer>
getIntList(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.Long
getLong(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.long
getLong(ParameterDefinition parameterDefinition, long defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.Long
getLong(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.long
getLong(java.lang.String name, long defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.Long[]
getLongArray(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.Long[]
getLongArray(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.Long>
getLongList(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.Long>
getLongList(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.Parameter
getParameter(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.Parameter
getParameter(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.String[]
getParameterNames()
Returns all the parameter names associated with this Parameters.java.util.Set<java.lang.String>
getParameterNameSet()
Returns all the parameter names associated with this Parameters.<T extends Parameters>
TgetParameters(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.<T extends Parameters>
TgetParameters(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.<T extends Parameters>
T[]getParametersArray(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.<T extends Parameters>
T[]getParametersArray(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.<T extends Parameters>
java.util.List<T>getParametersList(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.<T extends Parameters>
java.util.List<T>getParametersList(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.Map<java.lang.String,ParameterValue>
getParameterValueMap()
Returns a map of theParameterValue
s.Parameter
getParent()
Returns the parentParameter
of the identifierParameter
.java.lang.String
getQualifiedName()
Returns the qualified name.java.lang.String
getString(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.String
getString(ParameterDefinition parameterDefinition, java.lang.String defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.String
getString(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.String
getString(java.lang.String name, java.lang.String defaultValue)
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.java.lang.String[]
getStringArray(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.String[]
getStringArray(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.String>
getStringList(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.util.List<java.lang.String>
getStringList(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.Object
getValue(ParameterDefinition parameterDefinition)
Return the value for the specified parameter, ornull
if the parameter does not exist.java.lang.Object
getValue(java.lang.String name)
Return the value for the specified parameter, ornull
if the parameter does not exist.boolean
hasParameter(ParameterDefinition parameterDefinition)
Returns whether the specified parameter exists.boolean
hasParameter(java.lang.String name)
Returns whether this parameter exists.boolean
isAddable()
Returns whether the parameter can be added after the parameters instance is created.boolean
isValueAssigned(ParameterDefinition parameterDefinition)
Returns whether the value is assigned to the specified parameter.boolean
isValueAssigned(java.lang.String name)
Returns whether the value is assigned to the specified parameter.<T extends Parameters>
TnewParameters(ParameterDefinition parameterDefinition)
<T extends Parameters>
TnewParameters(java.lang.String name)
ParameterValue
newParameterValue(java.lang.String name, ParameterValueType parameterValueType)
ParameterValue
newParameterValue(java.lang.String name, ParameterValueType parameterValueType, boolean array)
void
putAll(Parameters parameters)
void
putValue(ParameterDefinition parameterDefinition, java.lang.Object value)
Put a value of the parameter corresponding to the given parameter definition.void
putValue(java.lang.String name, java.lang.Object value)
Put a value of the parameter corresponding to the given name.void
putValueNonNull(ParameterDefinition parameterDefinition, java.lang.Object value)
Put a value of the parameter corresponding to the given parameter definition.void
putValueNonNull(java.lang.String name, java.lang.Object value)
Put a value of the parameter corresponding to the given name.void
readFrom(java.lang.String text)
void
setIdentifier(Parameter identifier)
Specifies the identifierParameter
.void
setIndentString(java.lang.String indentString)
java.lang.String
toString()
<T extends Parameters>
TtouchParameters(ParameterDefinition parameterDefinition)
<T extends Parameters>
TtouchParameters(java.lang.String name)
void
updateContainer(Parameters parameters)
-
-
-
Constructor Detail
-
AbstractParameters
protected AbstractParameters(ParameterDefinition[] parameterDefinitions)
-
-
Method Detail
-
getIdentifier
public Parameter getIdentifier()
Description copied from interface:Parameters
Returns the identifierParameter
.- Specified by:
getIdentifier
in interfaceParameters
- Returns:
- the identifier
Parameter
-
setIdentifier
public void setIdentifier(Parameter identifier)
Description copied from interface:Parameters
Specifies the identifierParameter
.- Specified by:
setIdentifier
in interfaceParameters
- Parameters:
identifier
- the identifierParameter
-
getQualifiedName
public java.lang.String getQualifiedName()
Description copied from interface:Parameters
Returns the qualified name.- Specified by:
getQualifiedName
in interfaceParameters
- Returns:
- the qualified name
-
getParent
public Parameter getParent()
Description copied from interface:Parameters
Returns the parentParameter
of the identifierParameter
.parent = identifier --> container --> identifier
- Specified by:
getParent
in interfaceParameters
- Returns:
- a
Parameter
-
updateContainer
public void updateContainer(Parameters parameters)
- Specified by:
updateContainer
in interfaceParameters
-
getParameterValueMap
public java.util.Map<java.lang.String,ParameterValue> getParameterValueMap()
Description copied from interface:Parameters
Returns a map of theParameterValue
s.- Specified by:
getParameterValueMap
in interfaceParameters
- Returns:
- a map of the
ParameterValue
s
-
getParameterNames
public java.lang.String[] getParameterNames()
Description copied from interface:Parameters
Returns all the parameter names associated with this Parameters.- Specified by:
getParameterNames
in interfaceParameters
- Returns:
- an array of all parameter names associated with this Parameters
-
getParameterNameSet
public java.util.Set<java.lang.String> getParameterNameSet()
Description copied from interface:Parameters
Returns all the parameter names associated with this Parameters.- Specified by:
getParameterNameSet
in interfaceParameters
- Returns:
- the Set with all parameter names associated with this Parameters
-
hasParameter
public boolean hasParameter(java.lang.String name)
Description copied from interface:Parameters
Returns whether this parameter exists.- Specified by:
hasParameter
in interfaceParameters
- Parameters:
name
- the name of the parameter to check- Returns:
true
if the specified parameter exists;false
otherwise
-
hasParameter
public boolean hasParameter(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Returns whether the specified parameter exists.- Specified by:
hasParameter
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
true
if the specified parameter exists;false
otherwise
-
isValueAssigned
public boolean isValueAssigned(java.lang.String name)
Description copied from interface:Parameters
Returns whether the value is assigned to the specified parameter.- Specified by:
isValueAssigned
in interfaceParameters
- Parameters:
name
- the name of the parameter to check- Returns:
true
if a parameter is assigned a value;false
otherwise
-
isValueAssigned
public boolean isValueAssigned(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Returns whether the value is assigned to the specified parameter.- Specified by:
isValueAssigned
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
true
if a parameter is assigned a value;false
otherwise
-
getParameter
public Parameter getParameter(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getParameter
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getParameter
public Parameter getParameter(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getParameter
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getValue
public java.lang.Object getValue(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getValue
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getValue
public java.lang.Object getValue(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getValue
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
putAll
public void putAll(Parameters parameters)
- Specified by:
putAll
in interfaceParameters
-
putValue
public void putValue(java.lang.String name, java.lang.Object value)
Description copied from interface:Parameters
Put a value of the parameter corresponding to the given name.- Specified by:
putValue
in interfaceParameters
- Parameters:
name
- the parameter namevalue
- the value of parameter
-
putValue
public void putValue(ParameterDefinition parameterDefinition, java.lang.Object value)
Description copied from interface:Parameters
Put a value of the parameter corresponding to the given parameter definition.- Specified by:
putValue
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definitionvalue
- the value of parameter
-
putValueNonNull
public void putValueNonNull(java.lang.String name, java.lang.Object value)
Description copied from interface:Parameters
Put a value of the parameter corresponding to the given name. If a value is null then that value is ignored.- Specified by:
putValueNonNull
in interfaceParameters
- Parameters:
name
- the parameter namevalue
- the value of parameter
-
putValueNonNull
public void putValueNonNull(ParameterDefinition parameterDefinition, java.lang.Object value)
Description copied from interface:Parameters
Put a value of the parameter corresponding to the given parameter definition. If a value is null then that value is ignored.- Specified by:
putValueNonNull
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definitionvalue
- the value of parameter
-
clearValue
public void clearValue(java.lang.String name)
- Specified by:
clearValue
in interfaceParameters
-
clearValue
public void clearValue(ParameterDefinition parameterDefinition)
- Specified by:
clearValue
in interfaceParameters
-
getString
public java.lang.String getString(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getString
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getString
public java.lang.String getString(java.lang.String name, java.lang.String defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getString
in interfaceParameters
- Parameters:
name
- the parameter namedefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getString
public java.lang.String getString(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getString
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getString
public java.lang.String getString(ParameterDefinition parameterDefinition, java.lang.String defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getString
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definitiondefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getStringArray
public java.lang.String[] getStringArray(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getStringArray
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getStringArray
public java.lang.String[] getStringArray(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getStringArray
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getStringList
public java.util.List<java.lang.String> getStringList(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getStringList
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getStringList
public java.util.List<java.lang.String> getStringList(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getStringList
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getInt
public java.lang.Integer getInt(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getInt
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getInt
public int getInt(java.lang.String name, int defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getInt
in interfaceParameters
- Parameters:
name
- the parameter namedefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getIntArray
public java.lang.Integer[] getIntArray(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getIntArray
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getInt
public java.lang.Integer getInt(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getInt
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getInt
public int getInt(ParameterDefinition parameterDefinition, int defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getInt
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definitiondefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getIntArray
public java.lang.Integer[] getIntArray(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getIntArray
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getIntList
public java.util.List<java.lang.Integer> getIntList(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getIntList
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getIntList
public java.util.List<java.lang.Integer> getIntList(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getIntList
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getLong
public java.lang.Long getLong(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getLong
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getLong
public long getLong(java.lang.String name, long defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getLong
in interfaceParameters
- Parameters:
name
- the parameter namedefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getLong
public java.lang.Long getLong(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getLong
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getLong
public long getLong(ParameterDefinition parameterDefinition, long defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getLong
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definitiondefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getLongArray
public java.lang.Long[] getLongArray(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getLongArray
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getLongArray
public java.lang.Long[] getLongArray(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getLongArray
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getLongList
public java.util.List<java.lang.Long> getLongList(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getLongList
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getLongList
public java.util.List<java.lang.Long> getLongList(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getLongList
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getFloat
public java.lang.Float getFloat(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getFloat
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getFloat
public float getFloat(java.lang.String name, float defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getFloat
in interfaceParameters
- Parameters:
name
- the parameter namedefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getFloat
public java.lang.Float getFloat(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getFloat
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getFloat
public float getFloat(ParameterDefinition parameterDefinition, float defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getFloat
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definitiondefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getFloatArray
public java.lang.Float[] getFloatArray(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getFloatArray
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getFloatArray
public java.lang.Float[] getFloatArray(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getFloatArray
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getFloatList
public java.util.List<java.lang.Float> getFloatList(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getFloatList
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getFloatList
public java.util.List<java.lang.Float> getFloatList(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getFloatList
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getDouble
public java.lang.Double getDouble(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getDouble
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getDouble
public double getDouble(java.lang.String name, double defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getDouble
in interfaceParameters
- Parameters:
name
- the parameter namedefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getDouble
public java.lang.Double getDouble(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getDouble
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getDouble
public double getDouble(ParameterDefinition parameterDefinition, double defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getDouble
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definitiondefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getDoubleArray
public java.lang.Double[] getDoubleArray(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getDoubleArray
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getDoubleArray
public java.lang.Double[] getDoubleArray(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getDoubleArray
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getDoubleList
public java.util.List<java.lang.Double> getDoubleList(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getDoubleList
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getDoubleList
public java.util.List<java.lang.Double> getDoubleList(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getDoubleList
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getBoolean
public java.lang.Boolean getBoolean(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getBoolean
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getBoolean
public boolean getBoolean(java.lang.String name, boolean defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getBoolean
in interfaceParameters
- Parameters:
name
- the parameter namedefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getBoolean
public java.lang.Boolean getBoolean(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getBoolean
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getBoolean
public boolean getBoolean(ParameterDefinition parameterDefinition, boolean defaultValue)
Description copied from interface:Parameters
Return the value for the specified parameter, ordefaultValue
if the parameter does not exist.- Specified by:
getBoolean
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definitiondefaultValue
- the default value to return if no value is found- Returns:
- the value for the specified parameter, or
defaultValue
-
getBooleanArray
public java.lang.Boolean[] getBooleanArray(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getBooleanArray
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getBooleanArray
public java.lang.Boolean[] getBooleanArray(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getBooleanArray
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getBooleanList
public java.util.List<java.lang.Boolean> getBooleanList(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getBooleanList
in interfaceParameters
- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getBooleanList
public java.util.List<java.lang.Boolean> getBooleanList(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getBooleanList
in interfaceParameters
- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getParameters
public <T extends Parameters> T getParameters(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getParameters
in interfaceParameters
- Type Parameters:
T
- the type parameter- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getParameters
public <T extends Parameters> T getParameters(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getParameters
in interfaceParameters
- Type Parameters:
T
- the type parameter- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getParametersArray
public <T extends Parameters> T[] getParametersArray(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getParametersArray
in interfaceParameters
- Type Parameters:
T
- the type parameter- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getParametersArray
public <T extends Parameters> T[] getParametersArray(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getParametersArray
in interfaceParameters
- Type Parameters:
T
- the type parameter- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
getParametersList
public <T extends Parameters> java.util.List<T> getParametersList(java.lang.String name)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getParametersList
in interfaceParameters
- Type Parameters:
T
- the type parameter- Parameters:
name
- the parameter name- Returns:
- the value for the specified parameter, or
null
-
getParametersList
public <T extends Parameters> java.util.List<T> getParametersList(ParameterDefinition parameterDefinition)
Description copied from interface:Parameters
Return the value for the specified parameter, ornull
if the parameter does not exist.- Specified by:
getParametersList
in interfaceParameters
- Type Parameters:
T
- the type parameter- Parameters:
parameterDefinition
- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
newParameterValue
public ParameterValue newParameterValue(java.lang.String name, ParameterValueType parameterValueType)
- Specified by:
newParameterValue
in interfaceParameters
-
newParameterValue
public ParameterValue newParameterValue(java.lang.String name, ParameterValueType parameterValueType, boolean array)
- Specified by:
newParameterValue
in interfaceParameters
-
newParameters
public <T extends Parameters> T newParameters(java.lang.String name)
- Specified by:
newParameters
in interfaceParameters
-
newParameters
public <T extends Parameters> T newParameters(ParameterDefinition parameterDefinition)
- Specified by:
newParameters
in interfaceParameters
-
touchParameters
public <T extends Parameters> T touchParameters(java.lang.String name)
- Specified by:
touchParameters
in interfaceParameters
-
touchParameters
public <T extends Parameters> T touchParameters(ParameterDefinition parameterDefinition)
- Specified by:
touchParameters
in interfaceParameters
-
isAddable
public boolean isAddable()
Description copied from interface:Parameters
Returns whether the parameter can be added after the parameters instance is created.- Specified by:
isAddable
in interfaceParameters
- Returns:
true
if the parameter can be added after the parameters instance is created, otherwisefalse
-
describe
public java.lang.String describe()
- Specified by:
describe
in interfaceParameters
-
describe
public java.lang.String describe(boolean details)
- Specified by:
describe
in interfaceParameters
-
setIndentString
public void setIndentString(java.lang.String indentString)
- Specified by:
setIndentString
in interfaceParameters
-
readFrom
public void readFrom(java.lang.String text) throws AponParseException
- Specified by:
readFrom
in interfaceParameters
- Throws:
AponParseException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-