Class MetadataValidator

    • Constructor Detail

      • MetadataValidator

        protected MetadataValidator​(ValidatorContainer container,
                                    java.lang.String packageName)
        Creates a new validator instance.
        Parameters:
        container - The container of this validator.
        packageName - The name of the package containing the classes to be validated.
    • Method Detail

      • validateCollection

        final <T> void validateCollection​(java.lang.Class<T> elementType,
                                          java.util.Collection<? extends T> objects)
        Validates all elements in the given collection.
        Type Parameters:
        T - The type of elements in the collection.
        Parameters:
        elementType - The type of elements in the collection.
        objects - The collection to validate.
      • validateMandatory

        final void validateMandatory​(InternationalString object)
        Validates the given mandatory string.
        Parameters:
        object - The object to validate.
      • validateOptional

        final void validateOptional​(InternationalString object)
        Validates the given mandatory string.
        Parameters:
        object - The object to validate, or null.