Package org.alfresco.repo.dictionary
Class ValueDataTypeValidatorImpl
java.lang.Object
org.alfresco.repo.dictionary.ValueDataTypeValidatorImpl
- All Implemented Interfaces:
ValueDataTypeValidator
- Author:
- Jamal Kaabi-Mofrad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckBooleanValue(String value) voidinit()Checks that all necessary services have been provided.voidsetDictionaryService(DictionaryService dictionaryService) voidsetNamespaceService(NamespaceService namespaceService) voidvalidateValue(String dataType, String value) Validates the givenvalueagainst the givendataType.
-
Constructor Details
-
ValueDataTypeValidatorImpl
public ValueDataTypeValidatorImpl()
-
-
Method Details
-
setNamespaceService
-
setDictionaryService
-
init
public void init()Checks that all necessary services have been provided. -
validateValue
Description copied from interface:ValueDataTypeValidatorValidates the givenvalueagainst the givendataType.The supplied
dataTypemust be a validQNameprefixed string so it can be resolved into a fully qualified name data type registered in theDataTypeDefinition.- Specified by:
validateValuein interfaceValueDataTypeValidator- Parameters:
dataType- the target prefixed data type (e.g.d:int) which the string value should be converted tovalue- non-empty string value
-
checkBooleanValue
-