Package java.lang.annotation

Examples of java.lang.annotation.ElementType


    return isReachable;
  }

  private boolean isCascadeRequired(GlobalExecutionContext globalContext, LocalExecutionContext localContext, Member member) {
    final ElementType type = member instanceof Field ? ElementType.FIELD : ElementType.METHOD;
    boolean isReachable;
    boolean isCascadable;

    Path pathToObject = localContext.getPropertyPath().getPathWithoutLeafNode();
    if ( pathToObject == null ) {
View Full Code Here


    return isReachable;
  }

  private boolean isCascadeRequired(ValidationContext<?, ?> validationContext, ValueContext<?, ?> valueContext, Member member) {
    final ElementType type = member instanceof Field ? ElementType.FIELD : ElementType.METHOD;
    boolean isReachable;
    boolean isCascadable;

    PathImpl path = valueContext.getPropertyPath();
    Path pathToObject = path.getPathWithoutLeafNode();
View Full Code Here

    for ( Cascadable cascadable : validatable.getCascadables() ) {
      valueContext.appendNode( cascadable );
      valueContext.setCurrentGroup( cascadable.convertGroup( originalGroup ) );

      ElementType elementType = cascadable.getElementType();
      if ( isCascadeRequired(
          validationContext,
          valueContext.getCurrentBean(),
          valueContext.getPropertyPath(),
          elementType
View Full Code Here

    return isReachable;
  }

  private boolean isCascadeRequired(ValidationContext validationContext, ValueContext valueContext, Member member) {
    final ElementType type = member instanceof Field ? ElementType.FIELD : ElementType.METHOD;
    boolean isReachable;
    boolean isCascadable;

    Path pathToObject = valueContext.getPropertyPath().getPathWithoutLeafNode();
    if ( pathToObject == null ) {
View Full Code Here

    return isReachable;
  }

  private boolean isCascadeRequired(GlobalExecutionContext globalContext, LocalExecutionContext localContext, Member member) {
    final ElementType type = member instanceof Field ? ElementType.FIELD : ElementType.METHOD;
    boolean isReachable;
    boolean isCascadable;

    Path pathToObject = localContext.getPropertyPath().getPathWithoutLeafNode();
    if ( pathToObject == null ) {
View Full Code Here

    return isReachable;
  }

  private boolean isCascadeRequired(ValidationContext<?, ?> validationContext, ValueContext<?, ?> valueContext, Member member) {
    final ElementType type = member instanceof Field ? ElementType.FIELD : ElementType.METHOD;
    boolean isReachable;
    boolean isCascadable;

    PathImpl path = valueContext.getPropertyPath();
    Path pathToObject = path.getPathWithoutLeafNode();
View Full Code Here

            message = messageTemplate;
            if (propPath == null)
                propPath = PathImpl.createPathFromString(context.getPropertyName());
            descriptor = null;
        }
        ElementType elementType = (context.getAccess() != null) ? context.getAccess().getElementType() : null;
        ConstraintViolationImpl<T> ic = new ConstraintViolationImpl<T>(messageTemplate,
              message, rootBean, context.getBean(), propPath, value, descriptor, rootBeanType, elementType);
        constraintViolations.add(ic);
    }
View Full Code Here

    for ( Cascadable cascadable : validatable.getCascadables() ) {
      valueContext.appendNode( cascadable );
      Class<?> group = cascadable.convertGroup( originalGroup );
      valueContext.setCurrentGroup( group );

      ElementType elementType = cascadable.getElementType();
      if ( isCascadeRequired(
          validationContext,
          valueContext.getCurrentBean(),
          valueContext.getPropertyPath(),
          elementType
View Full Code Here

    for ( Cascadable cascadable : validatable.getCascadables() ) {
      valueContext.appendNode( cascadable );
      Class<?> group = cascadable.convertGroup( originalGroup );
      valueContext.setCurrentGroup( group );

      ElementType elementType = cascadable.getElementType();
      if ( isCascadeRequired(
          validationContext,
          valueContext.getCurrentBean(),
          valueContext.getPropertyPath(),
          elementType
View Full Code Here

            int bitmap = 0;
            for (Expression e : le.getExpressions()) {
                if (!(e instanceof PropertyExpression)) return;
                PropertyExpression element = (PropertyExpression) e;
                String name = element.getPropertyAsString();
                ElementType value = ElementType.valueOf(name);
                bitmap |= getElementCode(value);
            }
            root.setAllowedTargets(bitmap);
        }
    }
View Full Code Here

TOP

Related Classes of java.lang.annotation.ElementType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.