public class ValueDataTypeValidatorImpl extends Object implements ValueDataTypeValidator
| Constructor and Description |
|---|
ValueDataTypeValidatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkBooleanValue(String value) |
void |
init()
Checks that all necessary services have been provided.
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
validateValue(String dataType,
String value)
Validates the given
value against the given dataType. |
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void init()
public void validateValue(String dataType, String value)
ValueDataTypeValidatorvalue against the given dataType.
The supplied dataType must be a valid QName prefixed
string so it can be resolved into a fully qualified name data type
registered in the DataTypeDefinition.
validateValue in interface ValueDataTypeValidatordataType - the target prefixed data type (e.g. d:int) which
the string value should be converted tovalue - non-empty string valueprotected void checkBooleanValue(String value)
Copyright © 2005–2018 Alfresco Software. All rights reserved.