ValidationFailure.<init>
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.openejb.config.ValidationFailure.<init>(Showing top 15 results out of 315)

origin: org.apache.openejb/openejb-core

public void fail(final String component, final String key, final Object... details) {
  final ValidationFailure failure = new ValidationFailure(key);
  failure.setDetails(details);
  failure.setComponentName(component);
  addFailure(failure);
}
origin: org.apache.openejb/openejb-webservices

protected void visit(final Output output) {
  final Map outputParts = output.getMessage().getParts();
  if (outputParts.size() != 0 && outputParts.size() != 1) {
    context.addFailure(new ValidationFailure("The output message must contain zero or one parts: " + output.getName()));
  }
}
origin: org.apache.openejb/openejb-webservices

protected void visit(final Operation operation) {
  if (!operationNames.add(operation.getName())) {
    context.addFailure(new ValidationFailure("No two operations can have the same name: " + operation.getName()));
  }
}
origin: org.apache.openejb/openejb-webservices

protected void visit(final Fault fault) {
  final Part message = fault.getMessage().getPart("message");
  if (message == null) {
    context.addFailure(new ValidationFailure("The fault message must contain one part named 'message' : " + fault.getName()));
  } else if (!XSD_STRING.equals(message.getTypeName())) {
    context.addFailure(new ValidationFailure("The fault message must contain one part of type 'xsd:string' : " + fault.getName()));
  }
}
origin: org.apache.openejb/openejb-webservices

protected void visit(final BindingOutput bindingOutput) {
  final SOAPBody body = getSOAPBody(bindingOutput.getExtensibilityElements());
  final String encoding = body.getUse();
  if (encoding == null || !encoding.equals("encoded")) {
    context.addFailure(new ValidationFailure("The use attribute of the binding output operation must be 'encoded': " + bindingOutput.getName()));
  }
}
origin: org.apache.openejb/openejb-webservices

protected void visit(final Definition definition) {
  if (definition.getServices().values().size() != 1) {
    context.addFailure(new ValidationFailure("A lightweight RPC/Encoded service must contain only one Service"));
  }
}
origin: org.apache.tomee/openejb-webservices

protected void visit(BindingFault bindingFault) {
  SOAPBody body = getSOAPBody(bindingFault.getExtensibilityElements());
  String encoding = body.getUse();
  if (encoding == null || !encoding.equals("encoded")) {
    context.addFailure(new ValidationFailure("The use attribute of the binding fault operation must be 'encoded': " + bindingFault.getName()));
  }
}
origin: org.apache.openejb/openejb-webservices

  protected void visit(final Service service) {
    if (service.getPorts().values().size() != 1) {
      context.addFailure(new ValidationFailure("A lightweight RPC/Encoded service must contain only one Port"));
    }
  }
}
origin: org.apache.tomee/openejb-webservices

protected void visit(BindingInput bindingInput) {
  SOAPBody body = getSOAPBody(bindingInput.getExtensibilityElements());
  String encoding = body.getUse();
  if (encoding == null || !encoding.equals("encoded")) {
    context.addFailure(new ValidationFailure("The use attribute of the binding input operation must be 'encoded': " + bindingInput.getName()));
  }
}
origin: org.apache.tomee/openejb-core

public void fail(final String component, final String key, final Object... details) {
  final ValidationFailure failure = new ValidationFailure(key);
  failure.setDetails(details);
  failure.setComponentName(component);
  addFailure(failure);
}
origin: org.apache.openejb/openejb-webservices

protected void visit(final BindingFault bindingFault) {
  final SOAPBody body = getSOAPBody(bindingFault.getExtensibilityElements());
  final String encoding = body.getUse();
  if (encoding == null || !encoding.equals("encoded")) {
    context.addFailure(new ValidationFailure("The use attribute of the binding fault operation must be 'encoded': " + bindingFault.getName()));
  }
}
origin: org.apache.tomee/openejb-webservices

protected void visit(Operation operation) {
  if (!operationNames.add(operation.getName())) {
    context.addFailure(new ValidationFailure("No two operations can have the same name: " + operation.getName()));
  }
}
origin: org.apache.openejb/openejb-webservices

protected void visit(final BindingInput bindingInput) {
  final SOAPBody body = getSOAPBody(bindingInput.getExtensibilityElements());
  final String encoding = body.getUse();
  if (encoding == null || !encoding.equals("encoded")) {
    context.addFailure(new ValidationFailure("The use attribute of the binding input operation must be 'encoded': " + bindingInput.getName()));
  }
}
origin: org.apache.tomee/openejb-webservices

protected void visit(BindingOutput bindingOutput) {
  SOAPBody body = getSOAPBody(bindingOutput.getExtensibilityElements());
  String encoding = body.getUse();
  if (encoding == null || !encoding.equals("encoded")) {
    context.addFailure(new ValidationFailure("The use attribute of the binding output operation must be 'encoded': " + bindingOutput.getName()));
  }
}
origin: org.apache.tomee/openejb-webservices

  protected void visit(Service service) {
    if (service.getPorts().values().size() != 1) {
      context.addFailure(new ValidationFailure("A lightweight RPC/Encoded service must contain only one Port"));
    }
  }
}
org.apache.openejb.configValidationFailure<init>

Popular methods of ValidationFailure

  • getComponentName
  • getMessage
  • getPrefix
  • setComponentName
  • setDetails

Popular classes and methods

  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
  • Connection (java.sql)
    A connection (session) with a specific database. SQL statements are executed and results are returne
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFrame (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)