Java Code Examples for javax.xml.bind.annotation.XmlElement#namespace()
The following examples show how to use
javax.xml.bind.annotation.XmlElement#namespace() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RuntimeModeler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static QName getReturnQName(Method method, WebResult webResult, XmlElement xmlElem) { String webResultName = null; if (webResult != null && webResult.name().length() > 0) { webResultName = webResult.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webResultName != null && !xmlElemName.equals(webResultName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebResult(name)="+webResultName+" are different for method " +method); } String localPart = RETURN; if (webResultName != null) { localPart = webResultName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webResultNS = null; if (webResult != null && webResult.targetNamespace().length() > 0) { webResultNS = webResult.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webResultNS != null && !xmlElemNS.equals(webResultNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebResult(targetNamespace)="+webResultNS+" are different for method " +method); } String ns = ""; if (webResultNS != null) { ns = webResultNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 2
Source File: RuntimeModeler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static QName getParameterQName(Method method, WebParam webParam, XmlElement xmlElem, String paramDefault) { String webParamName = null; if (webParam != null && webParam.name().length() > 0) { webParamName = webParam.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webParamName != null && !xmlElemName.equals(webParamName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebParam(name)="+webParamName+" are different for method " +method); } String localPart = paramDefault; if (webParamName != null) { localPart = webParamName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webParamNS = null; if (webParam != null && webParam.targetNamespace().length() > 0) { webParamNS = webParam.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webParamNS != null && !xmlElemNS.equals(webParamNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebParam(targetNamespace)="+webParamNS+" are different for method " +method); } String ns = ""; if (webParamNS != null) { ns = webParamNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 3
Source File: RuntimeModeler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static QName getReturnQName(Method method, WebResult webResult, XmlElement xmlElem) { String webResultName = null; if (webResult != null && webResult.name().length() > 0) { webResultName = webResult.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webResultName != null && !xmlElemName.equals(webResultName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebResult(name)="+webResultName+" are different for method " +method); } String localPart = RETURN; if (webResultName != null) { localPart = webResultName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webResultNS = null; if (webResult != null && webResult.targetNamespace().length() > 0) { webResultNS = webResult.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webResultNS != null && !xmlElemNS.equals(webResultNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebResult(targetNamespace)="+webResultNS+" are different for method " +method); } String ns = ""; if (webResultNS != null) { ns = webResultNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 4
Source File: RuntimeModeler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static QName getParameterQName(Method method, WebParam webParam, XmlElement xmlElem, String paramDefault) { String webParamName = null; if (webParam != null && webParam.name().length() > 0) { webParamName = webParam.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webParamName != null && !xmlElemName.equals(webParamName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebParam(name)="+webParamName+" are different for method " +method); } String localPart = paramDefault; if (webParamName != null) { localPart = webParamName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webParamNS = null; if (webParam != null && webParam.targetNamespace().length() > 0) { webParamNS = webParam.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webParamNS != null && !xmlElemNS.equals(webParamNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebParam(targetNamespace)="+webParamNS+" are different for method " +method); } String ns = ""; if (webParamNS != null) { ns = webParamNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 5
Source File: RuntimeModeler.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static QName getReturnQName(Method method, WebResult webResult, XmlElement xmlElem) { String webResultName = null; if (webResult != null && webResult.name().length() > 0) { webResultName = webResult.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webResultName != null && !xmlElemName.equals(webResultName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebResult(name)="+webResultName+" are different for method " +method); } String localPart = RETURN; if (webResultName != null) { localPart = webResultName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webResultNS = null; if (webResult != null && webResult.targetNamespace().length() > 0) { webResultNS = webResult.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webResultNS != null && !xmlElemNS.equals(webResultNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebResult(targetNamespace)="+webResultNS+" are different for method " +method); } String ns = ""; if (webResultNS != null) { ns = webResultNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 6
Source File: RuntimeModeler.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static QName getParameterQName(Method method, WebParam webParam, XmlElement xmlElem, String paramDefault) { String webParamName = null; if (webParam != null && webParam.name().length() > 0) { webParamName = webParam.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webParamName != null && !xmlElemName.equals(webParamName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebParam(name)="+webParamName+" are different for method " +method); } String localPart = paramDefault; if (webParamName != null) { localPart = webParamName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webParamNS = null; if (webParam != null && webParam.targetNamespace().length() > 0) { webParamNS = webParam.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webParamNS != null && !xmlElemNS.equals(webParamNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebParam(targetNamespace)="+webParamNS+" are different for method " +method); } String ns = ""; if (webParamNS != null) { ns = webParamNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 7
Source File: RuntimeModeler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static QName getReturnQName(Method method, WebResult webResult, XmlElement xmlElem) { String webResultName = null; if (webResult != null && webResult.name().length() > 0) { webResultName = webResult.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webResultName != null && !xmlElemName.equals(webResultName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebResult(name)="+webResultName+" are different for method " +method); } String localPart = RETURN; if (webResultName != null) { localPart = webResultName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webResultNS = null; if (webResult != null && webResult.targetNamespace().length() > 0) { webResultNS = webResult.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webResultNS != null && !xmlElemNS.equals(webResultNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebResult(targetNamespace)="+webResultNS+" are different for method " +method); } String ns = ""; if (webResultNS != null) { ns = webResultNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 8
Source File: RuntimeModeler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static QName getParameterQName(Method method, WebParam webParam, XmlElement xmlElem, String paramDefault) { String webParamName = null; if (webParam != null && webParam.name().length() > 0) { webParamName = webParam.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webParamName != null && !xmlElemName.equals(webParamName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebParam(name)="+webParamName+" are different for method " +method); } String localPart = paramDefault; if (webParamName != null) { localPart = webParamName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webParamNS = null; if (webParam != null && webParam.targetNamespace().length() > 0) { webParamNS = webParam.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webParamNS != null && !xmlElemNS.equals(webParamNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebParam(targetNamespace)="+webParamNS+" are different for method " +method); } String ns = ""; if (webParamNS != null) { ns = webParamNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 9
Source File: RuntimeModeler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static QName getReturnQName(Method method, WebResult webResult, XmlElement xmlElem) { String webResultName = null; if (webResult != null && webResult.name().length() > 0) { webResultName = webResult.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webResultName != null && !xmlElemName.equals(webResultName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebResult(name)="+webResultName+" are different for method " +method); } String localPart = RETURN; if (webResultName != null) { localPart = webResultName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webResultNS = null; if (webResult != null && webResult.targetNamespace().length() > 0) { webResultNS = webResult.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webResultNS != null && !xmlElemNS.equals(webResultNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebResult(targetNamespace)="+webResultNS+" are different for method " +method); } String ns = ""; if (webResultNS != null) { ns = webResultNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 10
Source File: RuntimeModeler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static QName getParameterQName(Method method, WebParam webParam, XmlElement xmlElem, String paramDefault) { String webParamName = null; if (webParam != null && webParam.name().length() > 0) { webParamName = webParam.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webParamName != null && !xmlElemName.equals(webParamName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebParam(name)="+webParamName+" are different for method " +method); } String localPart = paramDefault; if (webParamName != null) { localPart = webParamName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webParamNS = null; if (webParam != null && webParam.targetNamespace().length() > 0) { webParamNS = webParam.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webParamNS != null && !xmlElemNS.equals(webParamNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebParam(targetNamespace)="+webParamNS+" are different for method " +method); } String ns = ""; if (webParamNS != null) { ns = webParamNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 11
Source File: RuntimeModeler.java From hottub with GNU General Public License v2.0 | 5 votes |
private static QName getReturnQName(Method method, WebResult webResult, XmlElement xmlElem) { String webResultName = null; if (webResult != null && webResult.name().length() > 0) { webResultName = webResult.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webResultName != null && !xmlElemName.equals(webResultName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebResult(name)="+webResultName+" are different for method " +method); } String localPart = RETURN; if (webResultName != null) { localPart = webResultName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webResultNS = null; if (webResult != null && webResult.targetNamespace().length() > 0) { webResultNS = webResult.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webResultNS != null && !xmlElemNS.equals(webResultNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebResult(targetNamespace)="+webResultNS+" are different for method " +method); } String ns = ""; if (webResultNS != null) { ns = webResultNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 12
Source File: RuntimeModeler.java From hottub with GNU General Public License v2.0 | 5 votes |
private static QName getParameterQName(Method method, WebParam webParam, XmlElement xmlElem, String paramDefault) { String webParamName = null; if (webParam != null && webParam.name().length() > 0) { webParamName = webParam.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webParamName != null && !xmlElemName.equals(webParamName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebParam(name)="+webParamName+" are different for method " +method); } String localPart = paramDefault; if (webParamName != null) { localPart = webParamName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webParamNS = null; if (webParam != null && webParam.targetNamespace().length() > 0) { webParamNS = webParam.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webParamNS != null && !xmlElemNS.equals(webParamNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebParam(targetNamespace)="+webParamNS+" are different for method " +method); } String ns = ""; if (webParamNS != null) { ns = webParamNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 13
Source File: RuntimeModeler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static QName getReturnQName(Method method, WebResult webResult, XmlElement xmlElem) { String webResultName = null; if (webResult != null && webResult.name().length() > 0) { webResultName = webResult.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webResultName != null && !xmlElemName.equals(webResultName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebResult(name)="+webResultName+" are different for method " +method); } String localPart = RETURN; if (webResultName != null) { localPart = webResultName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webResultNS = null; if (webResult != null && webResult.targetNamespace().length() > 0) { webResultNS = webResult.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webResultNS != null && !xmlElemNS.equals(webResultNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebResult(targetNamespace)="+webResultNS+" are different for method " +method); } String ns = ""; if (webResultNS != null) { ns = webResultNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 14
Source File: RuntimeModeler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static QName getParameterQName(Method method, WebParam webParam, XmlElement xmlElem, String paramDefault) { String webParamName = null; if (webParam != null && webParam.name().length() > 0) { webParamName = webParam.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webParamName != null && !xmlElemName.equals(webParamName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebParam(name)="+webParamName+" are different for method " +method); } String localPart = paramDefault; if (webParamName != null) { localPart = webParamName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webParamNS = null; if (webParam != null && webParam.targetNamespace().length() > 0) { webParamNS = webParam.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webParamNS != null && !xmlElemNS.equals(webParamNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebParam(targetNamespace)="+webParamNS+" are different for method " +method); } String ns = ""; if (webParamNS != null) { ns = webParamNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 15
Source File: RuntimeModeler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static QName getReturnQName(Method method, WebResult webResult, XmlElement xmlElem) { String webResultName = null; if (webResult != null && webResult.name().length() > 0) { webResultName = webResult.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webResultName != null && !xmlElemName.equals(webResultName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebResult(name)="+webResultName+" are different for method " +method); } String localPart = RETURN; if (webResultName != null) { localPart = webResultName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webResultNS = null; if (webResult != null && webResult.targetNamespace().length() > 0) { webResultNS = webResult.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webResultNS != null && !xmlElemNS.equals(webResultNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebResult(targetNamespace)="+webResultNS+" are different for method " +method); } String ns = ""; if (webResultNS != null) { ns = webResultNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }
Example 16
Source File: RuntimeModeler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static QName getParameterQName(Method method, WebParam webParam, XmlElement xmlElem, String paramDefault) { String webParamName = null; if (webParam != null && webParam.name().length() > 0) { webParamName = webParam.name(); } String xmlElemName = null; if (xmlElem != null && !xmlElem.name().equals("##default")) { xmlElemName = xmlElem.name(); } if (xmlElemName != null && webParamName != null && !xmlElemName.equals(webParamName)) { throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebParam(name)="+webParamName+" are different for method " +method); } String localPart = paramDefault; if (webParamName != null) { localPart = webParamName; } else if (xmlElemName != null) { localPart = xmlElemName; } String webParamNS = null; if (webParam != null && webParam.targetNamespace().length() > 0) { webParamNS = webParam.targetNamespace(); } String xmlElemNS = null; if (xmlElem != null && !xmlElem.namespace().equals("##default")) { xmlElemNS = xmlElem.namespace(); } if (xmlElemNS != null && webParamNS != null && !xmlElemNS.equals(webParamNS)) { throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebParam(targetNamespace)="+webParamNS+" are different for method " +method); } String ns = ""; if (webParamNS != null) { ns = webParamNS; } else if (xmlElemNS != null) { ns = xmlElemNS; } return new QName(ns, localPart); }