Class ValueDataTypeValidatorImpl

    • Constructor Detail

      • ValueDataTypeValidatorImpl

        public ValueDataTypeValidatorImpl()
    • 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​(String dataType,
                                  String value)
        Description copied from interface: ValueDataTypeValidator
        Validates the given 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.

        Specified by:
        validateValue in interface ValueDataTypeValidator
        Parameters:
        dataType - the target prefixed data type (e.g. d:int) which the string value should be converted to
        value - non-empty string value
      • checkBooleanValue

        protected void checkBooleanValue​(String value)