Package org.codehaus.enunciate.contract.jaxb

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


    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

Related Classes of org.codehaus.enunciate.contract.jaxb.ImplicitSchemaElement

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.