Package PamModel.parametermanager
Class SimplePamParameterData
java.lang.Object
PamModel.parametermanager.PamParameterData
PamModel.parametermanager.PrivatePamParameterData
PamModel.parametermanager.SimplePamParameterData
Simple parameter description which can work with a public
field. Private fields require either using PamParameterDataGetter
or a bespoke solution.
- Author:
- dg50
-
Constructor Summary
ConstructorDescriptionSimplePamParameterData
(Object parentObject, Field field) SimplePamParameterData
(Object parentObject, Field field, String shortName, String toolTip) -
Method Summary
Methods inherited from class PamModel.parametermanager.PrivatePamParameterData
convertStringType
Methods inherited from class PamModel.parametermanager.PamParameterData
getDataClass, getField, getFieldLength, getFieldName, getParentObject, getPostTitle, getShortName, getToolTip, setFieldLength, setInfo, setInfo, setPostTitle, setShortName, setToolTip, toString
-
Constructor Details
-
SimplePamParameterData
- Parameters:
parentObject
-field
-
-
SimplePamParameterData
- Parameters:
parentObject
-field
-shortName
-toolTip
-
-
-
Method Details
-
getData
- Specified by:
getData
in classPamParameterData
- Returns:
- The data. Primitives will be wrapped as an object.
- Throws:
IllegalArgumentException
IllegalAccessException
-
setData
Description copied from class:PamParameterData
Set the data in the field.- Overrides:
setData
in classPrivatePamParameterData
- Returns:
- true if successful, false if null, Exception if data are wrong type
- Throws:
IllegalArgumentException
IllegalAccessException
-