Examples of ImplicitSchemaElement


Examples of org.codehaus.enunciate.contract.jaxb.ImplicitSchemaElement

      LocalElementDeclaration decl = (LocalElementDeclaration) unwrapped;
      namespace = decl.getNamespace();
      name = decl.getName();
    }
    else if (ImplicitSchemaElement.class.isInstance(unwrapped)) {
      ImplicitSchemaElement ise = (ImplicitSchemaElement) unwrapped;
      namespace = ise.getTargetNamespace();
      name = ise.getElementName();
    }
    else {
      throw new TemplateModelException("The isDefinedGlobally method must have a local element declaration or an implicit schema element as a parameter.");
    }
View Full Code Here

Examples of org.codehaus.enunciate.contract.jaxb.ImplicitSchemaElement

    HashMap<String, WebMessagePart> implicitElementNames = new HashMap<String, WebMessagePart>();
    for (WebMethod webMethod : ei.getWebMethods()) {
      for (WebMessage webMessage : webMethod.getMessages()) {
        for (WebMessagePart webMessagePart : webMessage.getParts()) {
          if (!(webMessagePart instanceof WebFault) && (webMessagePart.isImplicitSchemaElement())) {
            ImplicitSchemaElement el = ((ImplicitSchemaElement) webMessagePart);
            WebMessagePart otherPart = implicitElementNames.put(el.getElementName(), webMessagePart);
            if (otherPart != null && ((ImplicitSchemaElement)otherPart).getTypeQName() != null && !((ImplicitSchemaElement)otherPart).getTypeQName().equals(el.getTypeQName())) {
              result.addError(webMethod, "Web method defines a message part named '" + el.getElementName() +
                "' that is identical to the name of a web message part defined in " + otherPart.getWebMethod().getPosition() + ".  Please use annotations to disambiguate.");
            }
          }
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.