org.qi4j.library.constraints

## Class URLConstraint

- java.lang.Object
- - org.qi4j.library.constraints.URLConstraint

- All Implemented Interfaces:
    Serializable, Constraint<URL,String>

      public class URLConstraint
      extends Object
      implements Constraint<URL,String>

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `URLConstraint()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isValid(URL annotation, String value)` For each value or parameter which should be checked this method will be invoked.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### URLConstraint

          public URLConstraint()

  - ### Method Detail

    - #### isValid

          public boolean isValid(URL annotation,
                        String value)

      Description copied from interface: `Constraint`
      For each value or parameter which should be checked this method will be invoked. If the method returns true the value is valid. If it returns false the value is considered invalid. When all constraints have been checked a ConstraintViolationException will be thrown with all the constraint violations that were found.
      Specified by:
        `isValid` in interface `Constraint<URL,String>`
      Parameters:
        `annotation` - the annotation to match
        `value` - the value to be checked
      Returns:
        true if valid, false if invalid