Class DomainValidator

    • Constructor Detail

      • DomainValidator

        public DomainValidator()
    • Method Detail

      • validate

        public boolean validate​(String value,
                                String rule)
        Determines if the value is a valid domain string
        Specified by:
        validate in interface IValidator
        Parameters:
        value - string value to validate
        rule - not used by this method
        Returns:
        true if the value represents a valid domain string
      • validate

        public boolean validate​(String domain)
        Determines if the domain is valid
        Parameters:
        domain - domain string to test
        Returns:
        true if the domain string is valid.