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,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 protectedAbstractParameters(ParameterDefinition[] parameterDefinitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearValue(ParameterDefinition parameterDefinition)voidclearValue(java.lang.String name)java.lang.Stringdescribe()java.lang.Stringdescribe(boolean details)java.lang.BooleangetBoolean(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.booleangetBoolean(ParameterDefinition parameterDefinition, boolean defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.BooleangetBoolean(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.booleangetBoolean(java.lang.String name, boolean defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.Boolean[]getBooleanArray(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.Boolean[]getBooleanArray(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.Boolean>getBooleanList(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.Boolean>getBooleanList(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.DoublegetDouble(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.doublegetDouble(ParameterDefinition parameterDefinition, double defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.DoublegetDouble(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.doublegetDouble(java.lang.String name, double defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.Double[]getDoubleArray(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.Double[]getDoubleArray(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.Double>getDoubleList(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.Double>getDoubleList(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.FloatgetFloat(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.floatgetFloat(ParameterDefinition parameterDefinition, float defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.FloatgetFloat(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.floatgetFloat(java.lang.String name, float defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.Float[]getFloatArray(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.Float[]getFloatArray(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.Float>getFloatList(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.Float>getFloatList(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.ParametergetIdentifier()Returns the identifierParameter.java.lang.IntegergetInt(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.intgetInt(ParameterDefinition parameterDefinition, int defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.IntegergetInt(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.intgetInt(java.lang.String name, int defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.Integer[]getIntArray(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.Integer[]getIntArray(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.Integer>getIntList(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.Integer>getIntList(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.LonggetLong(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.longgetLong(ParameterDefinition parameterDefinition, long defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.LonggetLong(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.longgetLong(java.lang.String name, long defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.Long[]getLongArray(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.Long[]getLongArray(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.Long>getLongList(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.Long>getLongList(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.ParametergetParameter(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.ParametergetParameter(java.lang.String name)Return the value for the specified parameter, ornullif 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, ornullif the parameter does not exist.<T extends Parameters>
TgetParameters(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.<T extends Parameters>
T[]getParametersArray(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.<T extends Parameters>
T[]getParametersArray(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.<T extends Parameters>
java.util.List<T>getParametersList(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.<T extends Parameters>
java.util.List<T>getParametersList(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.Map<java.lang.String,ParameterValue>getParameterValueMap()Returns a map of theParameterValues.ParametergetParent()Returns the parentParameterof the identifierParameter.java.lang.StringgetQualifiedName()Returns the qualified name.java.lang.StringgetString(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.StringgetString(ParameterDefinition parameterDefinition, java.lang.String defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.StringgetString(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.StringgetString(java.lang.String name, java.lang.String defaultValue)Return the value for the specified parameter, ordefaultValueif the parameter does not exist.java.lang.String[]getStringArray(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.String[]getStringArray(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.String>getStringList(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.util.List<java.lang.String>getStringList(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.ObjectgetValue(ParameterDefinition parameterDefinition)Return the value for the specified parameter, ornullif the parameter does not exist.java.lang.ObjectgetValue(java.lang.String name)Return the value for the specified parameter, ornullif the parameter does not exist.booleanhasParameter(ParameterDefinition parameterDefinition)Returns whether the specified parameter exists.booleanhasParameter(java.lang.String name)Returns whether this parameter exists.booleanhasValue(ParameterDefinition parameterDefinition)Returns whether a non-null value is assigned to the specified parameter.booleanhasValue(java.lang.String name)Returns whether a non-null value is assigned to the specified parameter.booleanisAddable()Returns whether the parameter can be added after the parameters instance is created.booleanisAssigned(ParameterDefinition parameterDefinition)Returns whether a value is assigned to the specified parameter.booleanisAssigned(java.lang.String name)Returns whether a value is assigned to the specified parameter.<T extends Parameters>
TnewParameters(ParameterDefinition parameterDefinition)<T extends Parameters>
TnewParameters(java.lang.String name)ParameterValuenewParameterValue(java.lang.String name, ParameterValueType parameterValueType)ParameterValuenewParameterValue(java.lang.String name, ParameterValueType parameterValueType, boolean array)voidputAll(Parameters parameters)voidputValue(ParameterDefinition parameterDefinition, java.lang.Object value)Put a value of the parameter corresponding to the given parameter definition.voidputValue(java.lang.String name, java.lang.Object value)Put a value of the parameter corresponding to the given name.voidputValueNonNull(ParameterDefinition parameterDefinition, java.lang.Object value)Put a value of the parameter corresponding to the given parameter definition.voidputValueNonNull(java.lang.String name, java.lang.Object value)Put a value of the parameter corresponding to the given name.voidreadFrom(java.lang.String text)voidsetIdentifier(Parameter identifier)Specifies the identifierParameter.voidsetIndentString(java.lang.String indentString)java.lang.StringtoString()<T extends Parameters>
TtouchParameters(ParameterDefinition parameterDefinition)<T extends Parameters>
TtouchParameters(java.lang.String name)voidupdateContainer(Parameters parameters)
-
-
-
Constructor Detail
-
AbstractParameters
protected AbstractParameters(ParameterDefinition[] parameterDefinitions)
-
-
Method Detail
-
getIdentifier
public Parameter getIdentifier()
Description copied from interface:ParametersReturns the identifierParameter.- Specified by:
getIdentifierin interfaceParameters- Returns:
- the identifier
Parameter
-
setIdentifier
public void setIdentifier(Parameter identifier)
Description copied from interface:ParametersSpecifies the identifierParameter.- Specified by:
setIdentifierin interfaceParameters- Parameters:
identifier- the identifierParameter
-
getQualifiedName
public java.lang.String getQualifiedName()
Description copied from interface:ParametersReturns the qualified name.- Specified by:
getQualifiedNamein interfaceParameters- Returns:
- the qualified name
-
getParent
public Parameter getParent()
Description copied from interface:ParametersReturns the parentParameterof the identifierParameter.parent = identifier --> container --> identifier- Specified by:
getParentin interfaceParameters- Returns:
- a
Parameter
-
updateContainer
public void updateContainer(Parameters parameters)
- Specified by:
updateContainerin interfaceParameters
-
getParameterValueMap
public java.util.Map<java.lang.String,ParameterValue> getParameterValueMap()
Description copied from interface:ParametersReturns a map of theParameterValues.- Specified by:
getParameterValueMapin interfaceParameters- Returns:
- a map of the
ParameterValues
-
getParameterNames
public java.lang.String[] getParameterNames()
Description copied from interface:ParametersReturns all the parameter names associated with this Parameters.- Specified by:
getParameterNamesin 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:ParametersReturns all the parameter names associated with this Parameters.- Specified by:
getParameterNameSetin interfaceParameters- Returns:
- the Set with all parameter names associated with this Parameters
-
hasParameter
public boolean hasParameter(java.lang.String name)
Description copied from interface:ParametersReturns whether this parameter exists.- Specified by:
hasParameterin interfaceParameters- Parameters:
name- the name of the parameter to check- Returns:
trueif the specified parameter exists;falseotherwise
-
hasParameter
public boolean hasParameter(ParameterDefinition parameterDefinition)
Description copied from interface:ParametersReturns whether the specified parameter exists.- Specified by:
hasParameterin interfaceParameters- Parameters:
parameterDefinition- the parameter definition- Returns:
trueif the specified parameter exists;falseotherwise
-
isAssigned
public boolean isAssigned(java.lang.String name)
Description copied from interface:ParametersReturns whether a value is assigned to the specified parameter. Even if a null is assigned, it is valid.- Specified by:
isAssignedin interfaceParameters- Parameters:
name- the name of the parameter to check- Returns:
trueif a parameter is assigned a value;falseotherwise
-
isAssigned
public boolean isAssigned(ParameterDefinition parameterDefinition)
Description copied from interface:ParametersReturns whether a value is assigned to the specified parameter. Even if a null is assigned, it is valid.- Specified by:
isAssignedin interfaceParameters- Parameters:
parameterDefinition- the parameter definition- Returns:
trueif a parameter is assigned a value;falseotherwise
-
hasValue
public boolean hasValue(java.lang.String name)
Description copied from interface:ParametersReturns whether a non-null value is assigned to the specified parameter.- Specified by:
hasValuein interfaceParameters- Parameters:
name- the name of the parameter to check- Returns:
trueif a non-null value is assigned a value;falseotherwise
-
hasValue
public boolean hasValue(ParameterDefinition parameterDefinition)
Description copied from interface:ParametersReturns whether a non-null value is assigned to the specified parameter.- Specified by:
hasValuein interfaceParameters- Parameters:
parameterDefinition- the parameter definition- Returns:
trueif a non-null value is assigned a value;falseotherwise
-
getParameter
public Parameter getParameter(java.lang.String name)
Description copied from interface:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getParameterin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getParameterin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getValuein 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getValuein interfaceParameters- Parameters:
parameterDefinition- the parameter definition- Returns:
- the value for the specified parameter, or
null
-
putAll
public void putAll(Parameters parameters)
- Specified by:
putAllin interfaceParameters
-
putValue
public void putValue(java.lang.String name, java.lang.Object value)Description copied from interface:ParametersPut a value of the parameter corresponding to the given name.- Specified by:
putValuein interfaceParameters- Parameters:
name- the parameter namevalue- the value of parameter
-
putValue
public void putValue(ParameterDefinition parameterDefinition, java.lang.Object value)
Description copied from interface:ParametersPut a value of the parameter corresponding to the given parameter definition.- Specified by:
putValuein 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:ParametersPut a value of the parameter corresponding to the given name. If a value is null then that value is ignored.- Specified by:
putValueNonNullin interfaceParameters- Parameters:
name- the parameter namevalue- the value of parameter
-
putValueNonNull
public void putValueNonNull(ParameterDefinition parameterDefinition, java.lang.Object value)
Description copied from interface:ParametersPut a value of the parameter corresponding to the given parameter definition. If a value is null then that value is ignored.- Specified by:
putValueNonNullin interfaceParameters- Parameters:
parameterDefinition- the parameter definitionvalue- the value of parameter
-
clearValue
public void clearValue(java.lang.String name)
- Specified by:
clearValuein interfaceParameters
-
clearValue
public void clearValue(ParameterDefinition parameterDefinition)
- Specified by:
clearValuein interfaceParameters
-
getString
public java.lang.String getString(java.lang.String name)
Description copied from interface:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getStringin 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getStringin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getStringin 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getStringin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getStringArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getStringArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getStringListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getStringListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getIntin 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getIntin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getIntArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getIntin 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getIntin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getIntArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getIntListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getIntListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getLongin 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getLongin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getLongin 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getLongin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getLongArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getLongArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getLongListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getLongListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getFloatin 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getFloatin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getFloatin 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getFloatin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getFloatArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getFloatArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getFloatListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getFloatListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getDoublein 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getDoublein 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getDoublein 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getDoublein 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getDoubleArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getDoubleArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getDoubleListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getDoubleListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getBooleanin 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getBooleanin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getBooleanin 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:ParametersReturn the value for the specified parameter, ordefaultValueif the parameter does not exist.- Specified by:
getBooleanin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getBooleanArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getBooleanArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getBooleanListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getBooleanListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getParametersin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getParametersin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getParametersArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getParametersArrayin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getParametersListin 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:ParametersReturn the value for the specified parameter, ornullif the parameter does not exist.- Specified by:
getParametersListin 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:
newParameterValuein interfaceParameters
-
newParameterValue
public ParameterValue newParameterValue(java.lang.String name, ParameterValueType parameterValueType, boolean array)
- Specified by:
newParameterValuein interfaceParameters
-
newParameters
public <T extends Parameters> T newParameters(java.lang.String name)
- Specified by:
newParametersin interfaceParameters
-
newParameters
public <T extends Parameters> T newParameters(ParameterDefinition parameterDefinition)
- Specified by:
newParametersin interfaceParameters
-
touchParameters
public <T extends Parameters> T touchParameters(java.lang.String name)
- Specified by:
touchParametersin interfaceParameters
-
touchParameters
public <T extends Parameters> T touchParameters(ParameterDefinition parameterDefinition)
- Specified by:
touchParametersin interfaceParameters
-
isAddable
public boolean isAddable()
Description copied from interface:ParametersReturns whether the parameter can be added after the parameters instance is created.- Specified by:
isAddablein interfaceParameters- Returns:
trueif the parameter can be added after the parameters instance is created, otherwisefalse
-
describe
public java.lang.String describe()
- Specified by:
describein interfaceParameters
-
describe
public java.lang.String describe(boolean details)
- Specified by:
describein interfaceParameters
-
setIndentString
public void setIndentString(java.lang.String indentString)
- Specified by:
setIndentStringin interfaceParameters
-
readFrom
public void readFrom(java.lang.String text) throws AponParseException- Specified by:
readFromin interfaceParameters- Throws:
AponParseException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-