Package org.alfresco.repo.dictionary
Class ValueDataTypeValidatorImpl
- java.lang.Object
-
- org.alfresco.repo.dictionary.ValueDataTypeValidatorImpl
-
- All Implemented Interfaces:
ValueDataTypeValidator
public class ValueDataTypeValidatorImpl extends java.lang.Object implements ValueDataTypeValidator
- Author:
- Jamal Kaabi-Mofrad
-
-
Constructor Summary
Constructors Constructor Description ValueDataTypeValidatorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckBooleanValue(java.lang.String value)voidinit()Checks that all necessary services have been provided.voidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)voidvalidateValue(java.lang.String dataType, java.lang.String value)Validates the givenvalueagainst the givendataType.
-
-
-
Method Detail
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
-
init
public void init()
Checks that all necessary services have been provided.
-
validateValue
public void validateValue(java.lang.String dataType, java.lang.String value)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
protected void checkBooleanValue(java.lang.String value)
-
-