Package javax.validation

Examples of javax.validation.Path$CrossParameterNode


  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 ) {
      pathToObject = PathImpl.createNewPath( null );
    }

    try {
View Full Code Here


    public String getMessageTemplate() {
      return messageTemplate;
    }

    public Path getPropertyPath() {
      return new Path() {
        public Iterator<Node> iterator() {
          return Collections.<Node> emptyList().iterator();
        }

        @Override
View Full Code Here

      return true;
    }

    boolean isReachable;
    PathImpl path = valueContext.getPropertyPath();
    Path pathToObject = path.getPathWithoutLeafNode();

    try {
      isReachable = validationContext.getTraversableResolver().isReachable(
          valueContext.getCurrentBean(),
          path.getLeafNode(),
View Full Code Here

    final ElementType type = member instanceof Field ? ElementType.FIELD : ElementType.METHOD;
    boolean isReachable;
    boolean isCascadable;

    PathImpl path = valueContext.getPropertyPath();
    Path pathToObject = path.getPathWithoutLeafNode();

    // HV-524 - class level constraints are reachable
    if ( ElementType.TYPE.equals( type ) ) {
      isReachable = true;
    }
View Full Code Here

      return false;
    }

    boolean isReachable;

    Path pathToObject = localContext.getPropertyPath().getPathWithoutLeafNode();
    if ( pathToObject == null ) {
      pathToObject = PathImpl.createNewPath( null );
    }

    try {
View Full Code Here

  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 ) {
      pathToObject = PathImpl.createNewPath( null );
    }

    try {
View Full Code Here

    String interpolatedMessage = interpolate(
        messageTemplate,
        localContext.getCurrentValidatedValue(),
        descriptor
    );
    Path path = messageAndPath.getPath();

    if ( executableParameters != null ) {
      return ConstraintViolationImpl.forParameterValidation(
          messageTemplate,
          interpolatedMessage,
View Full Code Here

      return false;
    }

    boolean isReachable;
    PathImpl path = valueContext.getPropertyPath();
    Path pathToObject = path.getPathWithoutLeafNode();

    try {
      isReachable = validationContext.getTraversableResolver().isReachable(
          valueContext.getCurrentBean(),
          path.getLeafNode(),
View Full Code Here

    final ElementType type = member instanceof Field ? ElementType.FIELD : ElementType.METHOD;
    boolean isReachable;
    boolean isCascadable;

    PathImpl path = valueContext.getPropertyPath();
    Path pathToObject = path.getPathWithoutLeafNode();

    try {
      isReachable = validationContext.getTraversableResolver().isReachable(
          valueContext.getCurrentBean(),
          path.getLeafNode(),
View Full Code Here

    public Object getLeafBean() {
        return null;
    }

    public Path getPropertyPath() {
        return new Path() {
            public Iterator<Node> iterator() {
                return Collections.<Node>singleton(new Node() {
                    public String getName() {
                        return propertyPath;
                    }
View Full Code Here

TOP

Related Classes of javax.validation.Path$CrossParameterNode

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.