public interface ValueDataTypeValidator
Modifier and Type | Method and Description |
---|---|
void |
validateValue(String dataType,
String value)
Validates the given
value against the given dataType . |
void validateValue(String dataType, String value) throws org.alfresco.service.namespace.InvalidQNameException, org.alfresco.service.namespace.NamespaceException, org.alfresco.error.AlfrescoRuntimeException
value
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
.
dataType
- the target prefixed data type (e.g. d:int
) which
the string value should be converted tovalue
- non-empty string valueorg.alfresco.service.namespace.InvalidQNameException
- if the dataType is not a valid
QName
prefixed string (prefix:type
)org.alfresco.service.namespace.NamespaceException
- if the prefix of the given dataType
is not mapped to a namespace URIorg.alfresco.error.AlfrescoRuntimeException
- if the given value cannot be converted
into the given data type, or the data type is unknownCopyright © 2005–2017 Alfresco Software. All rights reserved.