congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Binding
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.sun.xml.ws/jaxws-tools

public void validateThis() {
  if (getName() == null) {
    failValidation("validation.missingRequiredAttribute", "name");
  }
  if (_portType == null) {
    failValidation("validation.missingRequiredAttribute", "type");
  }
}
origin: com.sun.xml.ws/jaxws-tools

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

context.push();
context.registerNamespaces(e);
Binding binding = new Binding(definitions, forest.locatorTable.getStartLocation(e), errReceiver);
String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME);
binding.setName(name);
String typeAttr = Util.getRequiredAttribute(e, Constants.ATTR_TYPE);
binding.setPortType(context.translateQualifiedName(context.getLocation(e), typeAttr));
    binding.setDocumentation(getDocumentationFor(e2));
  } else if (
    XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_OPERATION)) {
    BindingOperation op = parseBindingOperation(context, e2);
    binding.add(op);
  } else {
origin: javaee/metro-jax-ws

public PortType resolvePortType(AbstractDocument document) {
  try {
    return (PortType) document.find(Kinds.PORT_TYPE, _portType);
  } catch (NoSuchEntityException e) {
    errorReceiver.error(getLocator(), WsdlMessages.ENTITY_NOT_FOUND_PORT_TYPE(_portType, new QName(getNamespaceURI(), getName())));
    throw new AbortException();
  }
}
origin: javaee/metro-jax-ws

  while (bindings.hasNext()) {
    Binding binding = (Binding) bindings.next();
    if (bName.getLocalPart().equals(binding.getName())
      && bName.getNamespaceURI().equals(binding.getNamespaceURI())) {
      List<TWSDLExtension> bindextends = (List<TWSDLExtension>) binding
        .extensions();
      for (TWSDLExtension wsdlext : bindextends) {
        value = resolveBindingValue(wsdlext);
if (b != null) {
List<TWSDLExtension> bindextends = (List<TWSDLExtension>) b
  .extensions();
for (TWSDLExtension wsdlext : bindextends) {
  value = resolveBindingValue(wsdlext);
origin: org.glassfish.metro/webservices-tools

PortType portType = binding.resolvePortType(document);
    for (Iterator itr = binding.operations();
       iter.hasNext();
        ) {
  for (Iterator iter = binding.operations(); iter.hasNext();) {
    BindingOperation bindingOperation =
        (BindingOperation) iter.next();
    if (operations.isEmpty()) {
      error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(bindingOperation.getName(), binding.getName()));
    } else if (operations.size() == 1) {
      portTypeOperation =
        error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(bindingOperation.getName(), binding.getName()));
  PortType pt = binding.resolvePortType(document);
  String jd = (pt.getDocumentation() != null) ? pt.getDocumentation().getContent() : null;
  port.getJavaInterface().setJavaDoc(jd);
applyWrapperStyleCustomization(port, binding.resolvePortType(document));
origin: javaee/metro-jax-ws

public String getNamespaceURI() {
  return getDefining().getTargetNamespaceURI();
}
origin: javaee/metro-jax-ws

public String getNameValue() {
  return getName();
}
origin: javaee/metro-jax-ws

public void accept(WSDLDocumentVisitor visitor) throws Exception {
  visitor.preVisit(this);
  for (Iterator iter = _imports.iterator(); iter.hasNext();) {
    ((Import) iter.next()).accept(visitor);
  }
  if (_types != null) {
    _types.accept(visitor);
  }
  for (Iterator iter = _messages.iterator(); iter.hasNext();) {
    ((Message) iter.next()).accept(visitor);
  }
  for (Iterator iter = _portTypes.iterator(); iter.hasNext();) {
    ((PortType) iter.next()).accept(visitor);
  }
  for (Iterator iter = _bindings.iterator(); iter.hasNext();) {
    ((Binding) iter.next()).accept(visitor);
  }
  for (Iterator iter = _services.iterator(); iter.hasNext();) {
    ((Service) iter.next()).accept(visitor);
  }
  _helper.accept(visitor);
  visitor.postVisit(this);
}
origin: org.glassfish.metro/webservices-tools

context.push();
context.registerNamespaces(e);
Binding binding = new Binding(definitions, forest.locatorTable.getStartLocation(e), errReceiver);
String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME);
binding.setName(name);
String typeAttr = Util.getRequiredAttribute(e, Constants.ATTR_TYPE);
binding.setPortType(context.translateQualifiedName(context.getLocation(e), typeAttr));
    binding.setDocumentation(getDocumentationFor(e2));
  } else if (
    XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_OPERATION)) {
    BindingOperation op = parseBindingOperation(context, e2);
    binding.add(op);
  } else {
origin: com.sun.xml.ws/jaxws-tools

public PortType resolvePortType(AbstractDocument document) {
  try {
    return (PortType) document.find(Kinds.PORT_TYPE, _portType);
  } catch (NoSuchEntityException e) {
    errorReceiver.error(getLocator(), WsdlMessages.ENTITY_NOT_FOUND_PORT_TYPE(_portType, new QName(getNamespaceURI(), getName())));
    throw new AbortException();
  }
}
origin: org.glassfish.metro/webservices-tools

  while (bindings.hasNext()) {
    Binding binding = (Binding) bindings.next();
    if (bName.getLocalPart().equals(binding.getName())
      && bName.getNamespaceURI().equals(binding.getNamespaceURI())) {
      List<TWSDLExtension> bindextends = (List<TWSDLExtension>) binding
        .extensions();
      for (TWSDLExtension wsdlext : bindextends) {
        value = resolveBindingValue(wsdlext);
if (b != null) {
List<TWSDLExtension> bindextends = (List<TWSDLExtension>) b
  .extensions();
for (TWSDLExtension wsdlext : bindextends) {
  value = resolveBindingValue(wsdlext);
origin: com.sun.xml.ws/jaxws-tools

PortType portType = binding.resolvePortType(document);
    for (Iterator itr = binding.operations();
       iter.hasNext();
        ) {
  for (Iterator iter = binding.operations(); iter.hasNext();) {
    BindingOperation bindingOperation =
        (BindingOperation) iter.next();
    if (operations.isEmpty()) {
      error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(bindingOperation.getName(), binding.getName()));
    } else if (operations.size() == 1) {
      portTypeOperation =
        error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(bindingOperation.getName(), binding.getName()));
  PortType pt = binding.resolvePortType(document);
  String jd = (pt.getDocumentation() != null) ? pt.getDocumentation().getContent() : null;
  port.getJavaInterface().setJavaDoc(jd);
applyWrapperStyleCustomization(port, binding.resolvePortType(document));
origin: javaee/metro-jax-ws

public String getNamespaceURI() {
  return getDefining().getTargetNamespaceURI();
}
origin: com.sun.xml.ws/jaxws-tools

public String getNameValue() {
  return getName();
}
origin: javaee/metro-jax-ws

public void accept(WSDLDocumentVisitor visitor) throws Exception {
  visitor.preVisit(this);
  for (Iterator iter = _imports.iterator(); iter.hasNext();) {
    ((Import) iter.next()).accept(visitor);
  }
  if (_types != null) {
    _types.accept(visitor);
  }
  for (Iterator iter = _messages.iterator(); iter.hasNext();) {
    ((Message) iter.next()).accept(visitor);
  }
  for (Iterator iter = _portTypes.iterator(); iter.hasNext();) {
    ((PortType) iter.next()).accept(visitor);
  }
  for (Iterator iter = _bindings.iterator(); iter.hasNext();) {
    ((Binding) iter.next()).accept(visitor);
  }
  for (Iterator iter = _services.iterator(); iter.hasNext();) {
    ((Service) iter.next()).accept(visitor);
  }
  _helper.accept(visitor);
  visitor.postVisit(this);
}
origin: javaee/metro-jax-ws

context.push();
context.registerNamespaces(e);
Binding binding = new Binding(definitions, forest.locatorTable.getStartLocation(e), errReceiver);
String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME);
binding.setName(name);
String typeAttr = Util.getRequiredAttribute(e, Constants.ATTR_TYPE);
binding.setPortType(context.translateQualifiedName(context.getLocation(e), typeAttr));
    binding.setDocumentation(getDocumentationFor(e2));
  } else if (
    XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_OPERATION)) {
    BindingOperation op = parseBindingOperation(context, e2);
    binding.add(op);
  } else {
origin: org.glassfish.metro/webservices-tools

public PortType resolvePortType(AbstractDocument document) {
  try {
    return (PortType) document.find(Kinds.PORT_TYPE, _portType);
  } catch (NoSuchEntityException e) {
    errorReceiver.error(getLocator(), WsdlMessages.ENTITY_NOT_FOUND_PORT_TYPE(_portType, new QName(getNamespaceURI(), getName())));
    throw new AbortException();
  }
}
origin: com.sun.xml.ws/jaxws-tools

  while (bindings.hasNext()) {
    Binding binding = (Binding) bindings.next();
    if (bName.getLocalPart().equals(binding.getName())
      && bName.getNamespaceURI().equals(binding.getNamespaceURI())) {
      List<TWSDLExtension> bindextends = (List<TWSDLExtension>) binding
        .extensions();
      for (TWSDLExtension wsdlext : bindextends) {
        value = resolveBindingValue(wsdlext);
if (b != null) {
List<TWSDLExtension> bindextends = (List<TWSDLExtension>) b
  .extensions();
for (TWSDLExtension wsdlext : bindextends) {
  value = resolveBindingValue(wsdlext);
origin: javaee/metro-jax-ws

PortType portType = binding.resolvePortType(document);
    for (Iterator itr = binding.operations();
       iter.hasNext();
        ) {
  for (Iterator iter = binding.operations(); iter.hasNext();) {
    BindingOperation bindingOperation =
        (BindingOperation) iter.next();
    if (operations.isEmpty()) {
      error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(bindingOperation.getName(), binding.getName()));
    } else if (operations.size() == 1) {
      portTypeOperation =
        error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(bindingOperation.getName(), binding.getName()));
  PortType pt = binding.resolvePortType(document);
  String jd = (pt.getDocumentation() != null) ? pt.getDocumentation().getContent() : null;
  port.getJavaInterface().setJavaDoc(jd);
applyWrapperStyleCustomization(port, binding.resolvePortType(document));
com.sun.tools.ws.wsdl.documentBinding

Javadoc

Entity corresponding to the "binding" WSDL element.

Most used methods

  • <init>
  • accept
  • add
  • extensions
  • failValidation
  • getDefining
  • getElementName
  • getLocator
  • getName
  • getNamespaceURI
  • operations
  • resolvePortType
  • operations,
  • resolvePortType,
  • setDocumentation,
  • setName,
  • setPortType

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • String (java.lang)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • BoxLayout (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now