Interface IFeatureScalarItemValueHandler
- All Superinterfaces:
IDefaultable,IItemValueHandler<Object>,IValued,IValuedMutable
- All Known Subinterfaces:
IBoundFieldValue,IBoundInstanceFlag,IBoundInstanceModelFieldScalar
-
Method Summary
Modifier and TypeMethodDescriptiondefault ObjectdeepCopyItem(Object source, IBoundObject parentInstance) Create and return a deep copy of the provided item.Get the data type adapter supporting the scalar value.default ObjectgetValueFromString(String text) Parse a string value using the underlying data type implementation.default voidApply the string value.Methods inherited from interface gov.nist.secauto.metaschema.core.model.IDefaultable
getDefaultValue, getEffectiveDefaultValue, getResolvedDefaultValueMethods inherited from interface gov.nist.secauto.metaschema.databind.model.info.IItemValueHandler
readItem, writeItemMethods 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:IItemValueHandlerCreate and return a deep copy of the provided item.- Specified by:
deepCopyItemin 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
-