Interface IFeatureScalarItemValueHandler
- All Superinterfaces:
IDefaultable
,IItemValueHandler<Object>
,IValued
,IValuedMutable
- All Known Subinterfaces:
IBoundFieldValue
,IBoundInstanceFlag
,IBoundInstanceModelFieldScalar
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
deepCopyItem
(Object source, IBoundObject parentInstance) Create and return a deep copy of the provided item.Get the data type adapter supporting the scalar value.default Object
getValueFromString
(String text) Parse a string value using the underlying data type implementation.default void
Apply the string value.Methods inherited from interface gov.nist.secauto.metaschema.core.model.IDefaultable
getDefaultValue, getEffectiveDefaultValue, getResolvedDefaultValue
Methods inherited from interface gov.nist.secauto.metaschema.databind.model.info.IItemValueHandler
readItem, writeItem
Methods inherited from interface gov.nist.secauto.metaschema.databind.model.IValuedMutable
setValue
-
Method Details
-
setValue
Apply the string value.This first parses the value using the underlying data type implementation and then applies the parsed value.
- Parameters:
parent
- the parent object to apply the value totext
- the value to parse- Throws:
IllegalArgumentException
- if the text was malformed- See Also:
-
getValueFromString
Parse a string value using the underlying data type implementation.- Parameters:
text
- the value to parse- Returns:
- the parsed value
- Throws:
IllegalArgumentException
- if the text was malformed- See Also:
-
getJavaTypeAdapter
Get the data type adapter supporting the scalar value.- Returns:
- the data type adapter
-
deepCopyItem
Description copied from interface:IItemValueHandler
Create and return a deep copy of the provided item.- Specified by:
deepCopyItem
in interfaceIItemValueHandler<Object>
- Parameters:
source
- the item to copyparentInstance
- an optional parent object to use for serialization callbacks- Returns:
- the new deep copy
- Throws:
BindingException
- if an error occurred while analyzing the bound objects
-