Class GwtValidationContext<T>

java.lang.Object
de.knightsoftnet.validators.client.impl.GwtValidationContext<T>
Type Parameters:
T - the type of the root bean.

public class GwtValidationContext<T> extends Object
Context for a GwtValidation.

NOTE: This class is not thread safe.

  • Constructor Details

    • GwtValidationContext

      public GwtValidationContext(Class<T> rootBeanClass, T rootBean, javax.validation.metadata.BeanDescriptor beanDescriptor, javax.validation.MessageInterpolator messageInterpolator, javax.validation.TraversableResolver traversableResolver, AbstractGwtValidator validator)
  • Method Details

    • addValidatedObject

      public void addValidatedObject(Object pobject)
    • alreadyValidated

      public boolean alreadyValidated(Object pobject)
    • append

      public GwtValidationContext<T> append(String name)
      Append a node named name to the path..
      Parameters:
      name - path name to append
      Returns:
      the new GwtValidationContext.
    • appendIndex

      public GwtValidationContext<T> appendIndex(String name, int index)
      Append an indexed node to the path.
      Parameters:
      name - path name to append
      index - position where to add the path
      Returns:
      the new GwtValidationContext.
    • appendIterable

      public GwtValidationContext<T> appendIterable(String name)
      Append an iterable node to the path.
      Parameters:
      name - path name to append
      Returns:
      the new GwtValidationContext.
    • appendKey

      public GwtValidationContext<T> appendKey(String name, Object key)
      Append a keyed node to the path.
      Parameters:
      name - path name to append
      key - key of the map
      Returns:
      the new GwtValidationContext.
    • createConstraintValidatorContext

      public <A extends Annotation, V> ConstraintValidatorContextImpl<A,V> createConstraintValidatorContext(javax.validation.metadata.ConstraintDescriptor<A> descriptor)
      create constraint validator context.
      Type Parameters:
      A - type of the annotation
      V - type of object to be validated
      Parameters:
      descriptor - constraint descriptor
      Returns:
      constraint validator context implementation
    • getMessageInterpolator

      public javax.validation.MessageInterpolator getMessageInterpolator()
    • getPath

      public org.hibernate.validator.internal.engine.path.PathImpl getPath()
    • getRootBean

      public T getRootBean()
    • getRootBeanClass

      public Class<T> getRootBeanClass()
    • getTraversableResolver

      public javax.validation.TraversableResolver getTraversableResolver()
    • getValidator

      public AbstractGwtValidator getValidator()