public class PropItem extends IstiNamedValue implements PropItemInterface
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
auxiliaryObj |
protected java.lang.Object |
groupSelObj |
protected CfgPropValidator |
validatorObj |
lenient
sepCh
Constructor and Description |
---|
PropItem(java.lang.String valueName,
java.lang.Object defaultValueObj)
Creates a value.
|
PropItem(java.lang.String valueName,
java.lang.Object defaultValueObj,
java.lang.Object valueObj,
java.lang.String descriptionStr)
Creates a value.
|
PropItem(java.lang.String valueName,
java.lang.Object defaultValueObj,
java.lang.String descriptionStr)
Creates a value.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
checkValue(java.lang.Object valueObj)
Checks the value object.
|
java.lang.Object |
clone()
Creates and returns a clone of this object.
|
java.lang.Object |
getAuxiliaryObj()
Returns the "auxiliary" object for this value.
|
java.lang.String |
getDescriptionStr()
Returns the description string.
|
java.lang.Object |
getGroupSelObj()
Returns the group-select object for this item.
|
CfgPropValidator |
getValidator()
Gets the validator object for this item.
|
PropItem |
setAuxiliaryObj(java.lang.Object obj)
Sets the "auxiliary" object for this item.
|
PropItem |
setGroupSelObj(java.lang.Object obj)
Sets the group-select object for this item.
|
PropItem |
setValidator(CfgPropValidator validatorObj)
Sets the validator for this item.
|
static boolean |
validateValue(CfgPropValidator validatorObj,
java.lang.Object valueObj)
Checks that the given object is a valid data value using the specified
validator.
|
determineStringValue, getDefaultValue, getName, getValue, isDefaultValue, setValue, setValueString, setValueString, stringValue, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultValue, getName, getValue, isDefaultValue, setValue, setValueString, stringValue
protected java.lang.Object auxiliaryObj
protected java.lang.Object groupSelObj
protected CfgPropValidator validatorObj
public PropItem(java.lang.String valueName, java.lang.Object defaultValueObj)
valueName
- the value name.defaultValueObj
- the default value object.public PropItem(java.lang.String valueName, java.lang.Object defaultValueObj, java.lang.String descriptionStr)
valueName
- the value name.defaultValueObj
- the default value object.descriptionStr
- the description text or null for the default.public PropItem(java.lang.String valueName, java.lang.Object defaultValueObj, java.lang.Object valueObj, java.lang.String descriptionStr)
valueName
- the value name.defaultValueObj
- the default value object.valueObj
- the value object or null for the default.descriptionStr
- the description text or null for the default.public java.lang.Object clone()
clone
in interface IstiNamedValueInterface
clone
in class IstiNamedValue
public java.lang.Object getAuxiliaryObj()
getAuxiliaryObj
in interface PropItemInterface
public java.lang.String getDescriptionStr()
getDescriptionStr
in interface PropItemInterface
public java.lang.Object getGroupSelObj()
getGroupSelObj
in interface PropItemInterface
public CfgPropValidator getValidator()
getValidator
in interface PropItemInterface
public PropItem setAuxiliaryObj(java.lang.Object obj)
obj
- the value of the object.public PropItem setGroupSelObj(java.lang.Object obj)
obj
- the group-select object to use.public PropItem setValidator(CfgPropValidator validatorObj)
validatorObj
- a 'CfgPropValidator' object.public static boolean validateValue(CfgPropValidator validatorObj, java.lang.Object valueObj)
validatorObj
- a 'CfgPropValidator' object.valueObj
- the value of the object.protected java.lang.Object checkValue(java.lang.Object valueObj)
checkValue
in class IstiNamedValue
valueObj
- the value object.