@Override public TypeMirror getClientConvertibleType() { return getType(); } }
/** * Gets the xml type of this result. * * @return The xml type of this result. */ public XmlType getXmlType() { XmlType xmlType = XmlTypeFactory.findSpecifiedType(this, this.context.getJaxbContext()); if (xmlType == null) { xmlType = XmlTypeFactory.getXmlType(getType(), this.context.getJaxbContext()); } return xmlType; }
public TemplateModel get(String key) throws TemplateModelException { if ("name".equals(key)) { return this.wrapper.wrap(result.getName()); } else if ("targetNamespace".equals(key)) { return this.wrapper.wrap(result.getTargetNamespace()); } else if ("partName".equals(key)) { return this.wrapper.wrap(result.getPartName()); } else if ("webMethod".equals(key)) { return this.wrapper.wrap(result.getWebMethod()); } else { return ((TemplateHashModel) this.wrapper.wrap(result.getType())).get(key); } }
public TemplateModel get(String key) throws TemplateModelException { if ("name".equals(key)) { return this.wrapper.wrap(result.getName()); } else if ("targetNamespace".equals(key)) { return this.wrapper.wrap(result.getTargetNamespace()); } else if ("partName".equals(key)) { return this.wrapper.wrap(result.getPartName()); } else if ("webMethod".equals(key)) { return this.wrapper.wrap(result.getWebMethod()); } else { return ((TemplateHashModel) this.wrapper.wrap(result.getType())).get(key); } }
protected void addReferencedTypeDefinitions(WebMethod webMethod, LinkedList<Element> contextStack) { contextStack.push(webMethod); try { WebResult result = webMethod.getWebResult(); this.jaxbModule.getJaxbContext().addReferencedTypeDefinitions(result.isAdapted() ? result.getAdapterType() : result.getType(), contextStack); for (WebParam webParam : webMethod.getWebParameters()) { this.jaxbModule.getJaxbContext().addReferencedTypeDefinitions(webParam.isAdapted() ? webParam.getAdapterType() : webParam.getType(), contextStack); } for (WebFault webFault : webMethod.getWebFaults()) { addReferencedTypeDefinitions(webFault, contextStack); } } finally { contextStack.pop(); } }
if (webMethod.getWebResult().getType() instanceof MapType) { warn("%s: C# can't handle return types that are maps.", positionOf(webMethod)); usesUnmappableElements = true;
if (webMethod.getWebResult().getType() instanceof MapType) { warn("%s: C# can't handle return types that are maps.", positionOf(webMethod)); usesUnmappableElements = true;