|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.param.AbstractParameter<Boolean>
org.opensha.commons.param.impl.BooleanParameter
public class BooleanParameter
Title: BooleanParameter
Description: Makes a parameter which is a boolean
| Field Summary | |
|---|---|
protected static String |
C
Class name for debugging. |
protected static boolean |
D
If true print out debug statements. |
protected static String |
PARAM_TYPE
|
| Fields inherited from class org.opensha.commons.param.AbstractParameter |
|---|
constraint, defaultValue, editable, independentParameters, info, metadataString, name, units, value, XML_COMPLEX_VAL_EL_NAME, XML_GROUP_METADATA_NAME, XML_METADATA_NAME, XML_NULL_VALUE |
| Fields inherited from interface org.opensha.commons.param.Parameter |
|---|
XML_INDEPENDENT_PARAMS_NAME |
| Constructor Summary | |
|---|---|
BooleanParameter(String name)
No constraints specified for this parameter. |
|
BooleanParameter(String name,
Boolean value)
No constraints specified, all values allowed. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a copy so you can't edit or damage the original. |
ParameterEditor<Boolean> |
getEditor()
Returns the Editor for this Parameter. |
String |
getType()
Returns the name of the parameter class |
boolean |
isNullAllowed()
Proxy function call to the constraint to see if null values are permitted |
boolean |
setIndividualParamValueFromXML(Element el)
Parses the XML element for a boolean value |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
protected static final String PARAM_TYPE
| Constructor Detail |
|---|
public BooleanParameter(String name)
name - Name of the parameter
public BooleanParameter(String name,
Boolean value)
name - Name of the parameterparamList - ParameterList object| Method Detail |
|---|
public boolean isNullAllowed()
AbstractParameter
isNullAllowed in interface Parameter<Boolean>isNullAllowed in class AbstractParameter<Boolean>public String getType()
getType in interface Parameter<Boolean>getType in class AbstractParameter<Boolean>public Object clone()
clone in interface Parameter<Boolean>clone in class AbstractParameter<Boolean>public boolean setIndividualParamValueFromXML(Element el)
setIndividualParamValueFromXML in class AbstractParameter<Boolean>public ParameterEditor<Boolean> getEditor()
ParameterEditor for this Parameter. It is
recommended that editors be lazily instantiated.
Editor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||