Class ValueDataTypeValidatorImpl

java.lang.Object
org.alfresco.repo.dictionary.ValueDataTypeValidatorImpl
All Implemented Interfaces:
ValueDataTypeValidator

public class ValueDataTypeValidatorImpl extends Object implements ValueDataTypeValidator
Author:
Jamal Kaabi-Mofrad
  • Constructor Details

    • ValueDataTypeValidatorImpl

      public ValueDataTypeValidatorImpl()
  • Method Details

    • setNamespaceService

      public void setNamespaceService(NamespaceService namespaceService)
    • setDictionaryService

      public void setDictionaryService(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)