Package com.azaptree.services.commons.validation

Examples of com.azaptree.services.commons.validation.ValidationException


    }

    for (final TypeReferenceKey<?> key : keys.get()) {
      if (key.isRequired()) {
        if (!ctx.containsKey(key)) {
          throw new ValidationException(String.format("%s  : TypeReferenceKey is required: %s", command.getName(), key));
        }
      }
    }
  }
View Full Code Here


    }

    for (final TypeReferenceKey<?> key : keys.get()) {
      if (key.isRequired()) {
        if (!ctx.containsKey(key)) {
          throw new ValidationException(String.format("%s  : TypeReferenceKey is required: %s", command.getName(), key));
        }
      }
    }
  }
View Full Code Here

    }

    for (final TypeReferenceKey<?> key : keys.get()) {
      if (key.isRequired()) {
        if (ctx.get(key) == null && key.getDefaultValue() == null) {
          throw new ValidationException(String.format("%s  : TypeReferenceKey is required: %s", command.getName(), key));
        }
      }
    }
  }
View Full Code Here

    }

    for (final TypeReferenceKey<?> key : keys.get()) {
      if (key.isRequired()) {
        if (ctx.get(key) == null && key.getDefaultValue() == null) {
          throw new ValidationException(String.format("%s  : TypeReferenceKey is required: %s", command.getName(), key));
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.azaptree.services.commons.validation.ValidationException

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.