Class ValueDataTypeValidatorImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkBooleanValue​(java.lang.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​(java.lang.String dataType, java.lang.String value)
      Validates the given value against the given dataType.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.String dataType,
                                  java.lang.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​(java.lang.String value)