Class ValidationContext

    • Constructor Detail

      • ValidationContext

        public ValidationContext​(java.util.Locale locale,
                                 java.lang.ClassLoader resourceClassLoader,
                                 IGenericAttributeValidationConfiguration genericAttributeValidationConfiguration)
        Creates a new validation context with the specified locale, resource ClassLoader and IGenericAttributeValidationConfiguration.
        Parameters:
        locale - Setting the locale of this context
        resourceClassLoader - setting the ClassLoader used to load resources
        Throws:
        java.lang.NullPointerException - if one of the specified parameters is null
      • ValidationContext

        public ValidationContext​(java.util.Locale locale,
                                 java.lang.ClassLoader resourceClassLoader)
        Creates a new validation context with the specified locale, resource ClassLoader and a DefaultGenericAttributeValidationConfiguration.
        Parameters:
        locale - Setting the locale of this context
        resourceClassLoader - setting the ClassLoader used to load resources
        Throws:
        java.lang.NullPointerException - if one of the specified parameters is null
      • ValidationContext

        public ValidationContext​(java.util.Locale locale)
        Creates a new validation context with the specified locale and a DefaultGenericAttributeValidationConfiguration.
        Throws:
        java.lang.NullPointerException - if the specified locale is null
    • Method Detail

      • getLocale

        public java.util.Locale getLocale()
        Description copied from interface: IValidationContext
        Returns the Locale that is to use for the creation of validation messages.
        Specified by:
        getLocale in interface IValidationContext
      • getValue

        public java.lang.Object getValue​(java.lang.String propertyName)
        Description copied from interface: IValidationContext
        Returns the value for property with the specified name.
        Specified by:
        getValue in interface IValidationContext
      • setValue

        public void setValue​(java.lang.String propertyName,
                             java.lang.Object value)
        Sets the value of the specified property.
        Parameters:
        propertyName - the name of the property
        value - the value of the property
      • getResourceClassLoader

        public java.lang.ClassLoader getResourceClassLoader()
        Returns:
        Returns the resourceClassLoader.