Codota Logo
Fault
Code IndexAdd Codota to your IDE (free)

How to use
Fault
in
com.sun.tools.ws.wsdl.document

Best Java code snippets using com.sun.tools.ws.wsdl.document.Fault (Showing top 20 results out of 315)

  • Common ways to obtain Fault
private void myMethod () {
Fault f =
  • Codota IconLocatorTable locatorTable;Element e;new Fault(locatorTable.getStartLocation(e))
  • Smart code suggestions by Codota
}
origin: com.sun.xml.ws/jaxws-tools

@Override
public void validateThis() {
  if (_name == null) {
    failValidation("validation.missingRequiredAttribute", "name");
  }
  if (_message == null) {
    failValidation("validation.missingRequiredAttribute", "message");
  }
}
origin: com.sun.xml.ws/jaxws-tools

@Override
public QName getWSDLElementName() {
  return getElementName();
}
origin: com.sun.xml.ws/jaxws-tools

@Override
public String getNameValue() {
  return getName();
}
origin: com.sun.xml.ws/jaxws-tools

context.push();
context.registerNamespaces(e2);
Fault fault = new Fault(forest.locatorTable.getStartLocation(e2));
fault.setParent(operation);
String messageAttr =
  Util.getRequiredAttribute(e2, Constants.ATTR_MESSAGE);
fault.setMessage(context.translateQualifiedName(context.getLocation(e2), messageAttr));
String nameAttr =
  XmlUtil.getAttributeOrNull(e2, Constants.ATTR_NAME);
fault.setName(nameAttr);
operation.addFault(fault);
gotFault = true;
    if(fault.getDocumentation() == null)
      fault.setDocumentation(getDocumentationFor(e3));
  } else {
origin: org.glassfish.metro/webservices-tools

com.sun.tools.ws.wsdl.document.Fault portTypeFault = null;
for (com.sun.tools.ws.wsdl.document.Fault aFault : info.portTypeOperation.faults()) {
  if (aFault.getName().equals(bindingFault.getName())) {
    if (portTypeFault != null) {
  portTypeFault.resolveMessage(info.document);
if(faultMessage.getParts().isEmpty()) {
  warning(soapFault, ModelerMessages.WSDLMODELER_WARNING_R_2716_R_2726("soapbind:fault", soapFault.getName()));
String faultNamespaceURI = (soapFault != null && soapFault.getNamespace() != null)?soapFault.getNamespace():portTypeFault.getMessage().getNamespaceURI();
String faultName = faultMessage.getName();
QName faultQName = new QName(faultNamespaceURI, faultName);
origin: org.glassfish.metro/webservices-tools

com.sun.tools.ws.wsdl.document.Fault portTypeFault = null;
for (com.sun.tools.ws.wsdl.document.Fault aFault : info.portTypeOperation.faults()) {
  if (aFault.getName().equals(bindingFault.getName())) {
    if (portTypeFault != null) {
  if (bFault.getName().equals(portTypeFault.getName())) {
    bindingFault = bFault;
  warning(portTypeFault,ModelerMessages.WSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(portTypeFault.getName(),info.portTypeOperation.getName()));
fault.setWsdlFaultName(portTypeFault.getName());
setDocumentationIfPresent(fault, portTypeFault.getDocumentation());
if (bindingFault != null) {
com.sun.tools.ws.wsdl.document.Message faultMessage = portTypeFault.resolveMessage(info.document);
Iterator iter2 = faultMessage.parts();
if (!iter2.hasNext()) {
  error(faultMessage, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_EMPTY_MESSAGE(portTypeFault.getName(), faultMessage.getName()));
  warning(faultPart, ModelerMessages.WSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(portTypeFault.getName(), info.portTypeOperation.getName(), faultPart.getName()));
  continue;
  error(faultMessage, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_MESSAGE_HAS_MORE_THAN_ONE_PART(portTypeFault.getName(), faultMessage.getName()));
origin: com.sun.xml.ws/jaxws-tools

if (f.getAction() == null)
  continue;
if (f.getAction().equals(""))
  continue;
faAnn.param("className", map.get(f.getName()));
faAnn.param("value", f.getAction());
origin: org.glassfish.metro/webservices-tools

@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
  String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME);
  if (actionValue == null || actionValue.equals("")) {
    errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
    return false; // keep compiler happy
  }
  ((Fault)parent).setAction(actionValue);
  return true;
}
origin: com.sun.xml.ws/jaxws-tools

public void accept(WSDLDocumentVisitor visitor) throws Exception {
  visitor.preVisit(this);
  if (_input != null) {
    _input.accept(visitor);
  }
  if (_output != null) {
    _output.accept(visitor);
  }
  for (Fault _fault : _faults) {
    _fault.accept(visitor);
  }
  visitor.postVisit(this);
}
origin: org.glassfish.metro/webservices-tools

private String getFaultClassName(com.sun.tools.ws.wsdl.document.Fault portTypeFault) {
  JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(portTypeFault, JAXWSBinding.class);
  if (jaxwsBinding != null) {
    CustomName className = jaxwsBinding.getClassName();
    if (className != null) {
      return makePackageQualified(className.getName());
    }
  }
  return makePackageQualified(BindingHelper.mangleNameToClassName(portTypeFault.getMessage().getLocalPart()));
}
origin: javaee/metro-jax-ws

context.push();
context.registerNamespaces(e2);
Fault fault = new Fault(forest.locatorTable.getStartLocation(e2));
fault.setParent(operation);
String messageAttr =
  Util.getRequiredAttribute(e2, Constants.ATTR_MESSAGE);
fault.setMessage(context.translateQualifiedName(context.getLocation(e2), messageAttr));
String nameAttr =
  XmlUtil.getAttributeOrNull(e2, Constants.ATTR_NAME);
fault.setName(nameAttr);
operation.addFault(fault);
gotFault = true;
    if(fault.getDocumentation() == null)
      fault.setDocumentation(getDocumentationFor(e3));
  } else {
origin: com.sun.xml.ws/jaxws-tools

com.sun.tools.ws.wsdl.document.Fault portTypeFault = null;
for (com.sun.tools.ws.wsdl.document.Fault aFault : info.portTypeOperation.faults()) {
  if (aFault.getName().equals(bindingFault.getName())) {
    if (portTypeFault != null) {
  portTypeFault.resolveMessage(info.document);
if(faultMessage.getParts().isEmpty()) {
  warning(soapFault, ModelerMessages.WSDLMODELER_WARNING_R_2716_R_2726("soapbind:fault", soapFault.getName()));
String faultNamespaceURI = (soapFault != null && soapFault.getNamespace() != null)?soapFault.getNamespace():portTypeFault.getMessage().getNamespaceURI();
String faultName = faultMessage.getName();
QName faultQName = new QName(faultNamespaceURI, faultName);
origin: com.sun.xml.ws/jaxws-tools

com.sun.tools.ws.wsdl.document.Fault portTypeFault = null;
for (com.sun.tools.ws.wsdl.document.Fault aFault : info.portTypeOperation.faults()) {
  if (aFault.getName().equals(bindingFault.getName())) {
    if (portTypeFault != null) {
  if (bFault.getName().equals(portTypeFault.getName())) {
    bindingFault = bFault;
  warning(portTypeFault,ModelerMessages.WSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(portTypeFault.getName(),info.portTypeOperation.getName()));
fault.setWsdlFaultName(portTypeFault.getName());
setDocumentationIfPresent(fault, portTypeFault.getDocumentation());
if (bindingFault != null) {
com.sun.tools.ws.wsdl.document.Message faultMessage = portTypeFault.resolveMessage(info.document);
Iterator iter2 = faultMessage.parts();
if (!iter2.hasNext()) {
  error(faultMessage, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_EMPTY_MESSAGE(portTypeFault.getName(), faultMessage.getName()));
  warning(faultPart, ModelerMessages.WSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(portTypeFault.getName(), info.portTypeOperation.getName(), faultPart.getName()));
  continue;
  error(faultMessage, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_MESSAGE_HAS_MORE_THAN_ONE_PART(portTypeFault.getName(), faultMessage.getName()));
origin: org.glassfish.metro/webservices-tools

if (f.getAction() == null)
  continue;
if (f.getAction().equals(""))
  continue;
faAnn.param("className", map.get(f.getName()));
faAnn.param("value", f.getAction());
origin: javaee/metro-jax-ws

@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
  String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME);
  if (actionValue == null || actionValue.equals("")) {
    errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
    return false; // keep compiler happy
  }
  ((Fault)parent).setAction(actionValue);
  return true;
}
origin: org.glassfish.metro/webservices-tools

public void accept(WSDLDocumentVisitor visitor) throws Exception {
  visitor.preVisit(this);
  if (_input != null) {
    _input.accept(visitor);
  }
  if (_output != null) {
    _output.accept(visitor);
  }
  for (Fault _fault : _faults) {
    _fault.accept(visitor);
  }
  visitor.postVisit(this);
}
origin: com.sun.xml.ws/jaxws-tools

private String getFaultClassName(com.sun.tools.ws.wsdl.document.Fault portTypeFault) {
  JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(portTypeFault, JAXWSBinding.class);
  if (jaxwsBinding != null) {
    CustomName className = jaxwsBinding.getClassName();
    if (className != null) {
      return makePackageQualified(className.getName());
    }
  }
  return makePackageQualified(BindingHelper.mangleNameToClassName(portTypeFault.getMessage().getLocalPart()));
}
origin: org.glassfish.metro/webservices-tools

context.push();
context.registerNamespaces(e2);
Fault fault = new Fault(forest.locatorTable.getStartLocation(e2));
fault.setParent(operation);
String messageAttr =
  Util.getRequiredAttribute(e2, Constants.ATTR_MESSAGE);
fault.setMessage(context.translateQualifiedName(context.getLocation(e2), messageAttr));
String nameAttr =
  XmlUtil.getAttributeOrNull(e2, Constants.ATTR_NAME);
fault.setName(nameAttr);
operation.addFault(fault);
gotFault = true;
    if(fault.getDocumentation() == null)
      fault.setDocumentation(getDocumentationFor(e3));
  } else {
origin: javaee/metro-jax-ws

com.sun.tools.ws.wsdl.document.Fault portTypeFault = null;
for (com.sun.tools.ws.wsdl.document.Fault aFault : info.portTypeOperation.faults()) {
  if (aFault.getName().equals(bindingFault.getName())) {
    if (portTypeFault != null) {
  portTypeFault.resolveMessage(info.document);
if(faultMessage.getParts().isEmpty()) {
  warning(soapFault, ModelerMessages.WSDLMODELER_WARNING_R_2716_R_2726("soapbind:fault", soapFault.getName()));
String faultNamespaceURI = (soapFault != null && soapFault.getNamespace() != null)?soapFault.getNamespace():portTypeFault.getMessage().getNamespaceURI();
String faultName = faultMessage.getName();
QName faultQName = new QName(faultNamespaceURI, faultName);
origin: javaee/metro-jax-ws

com.sun.tools.ws.wsdl.document.Fault portTypeFault = null;
for (com.sun.tools.ws.wsdl.document.Fault aFault : info.portTypeOperation.faults()) {
  if (aFault.getName().equals(bindingFault.getName())) {
    if (portTypeFault != null) {
  if (bFault.getName().equals(portTypeFault.getName())) {
    bindingFault = bFault;
  warning(portTypeFault,ModelerMessages.WSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(portTypeFault.getName(),info.portTypeOperation.getName()));
fault.setWsdlFaultName(portTypeFault.getName());
setDocumentationIfPresent(fault, portTypeFault.getDocumentation());
if (bindingFault != null) {
com.sun.tools.ws.wsdl.document.Message faultMessage = portTypeFault.resolveMessage(info.document);
Iterator iter2 = faultMessage.parts();
if (!iter2.hasNext()) {
  error(faultMessage, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_EMPTY_MESSAGE(portTypeFault.getName(), faultMessage.getName()));
  warning(faultPart, ModelerMessages.WSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(portTypeFault.getName(), info.portTypeOperation.getName(), faultPart.getName()));
  continue;
  error(faultMessage, ModelerMessages.WSDLMODELER_INVALID_BINDING_FAULT_MESSAGE_HAS_MORE_THAN_ONE_PART(portTypeFault.getName(), faultMessage.getName()));
com.sun.tools.ws.wsdl.documentFault

Javadoc

Entity corresponding to the "fault" child element of a port type operation.

Most used methods

  • <init>
  • accept
  • failValidation
  • getAction
  • getDocumentation
  • getElementName
  • getMessage
  • getName
  • resolveMessage
  • setAction
  • setDocumentation
  • setMessage
  • setDocumentation,
  • setMessage,
  • setName,
  • setParent

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Notification (javax.management)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • BoxLayout (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now