com.sun.xml.internal.txw2.annotation.XmlElement Java Examples

The following examples show how to use com.sun.xml.internal.txw2.annotation.XmlElement. 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: TXW.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
static QName getTagName( Class<?> c ) {
    String localName="";
    String nsUri="##default";

    XmlElement xe = c.getAnnotation(XmlElement.class);
    if(xe!=null) {
        localName = xe.value();
        nsUri = xe.ns();
    }

    if(localName.length()==0) {
        localName = c.getName();
        int idx = localName.lastIndexOf('.');
        if(idx>=0)
            localName = localName.substring(idx+1);

        localName = Character.toLowerCase(localName.charAt(0))+localName.substring(1);
    }

    if(nsUri.equals("##default")) {
        Package pkg = c.getPackage();
        if(pkg!=null) {
            XmlNamespace xn = pkg.getAnnotation(XmlNamespace.class);
            if(xn!=null)
                nsUri = xn.value();
        }
    }
    if(nsUri.equals("##default"))
        nsUri = "";

    return new QName(nsUri,localName);
}
 
Example #2
Source File: TypeDefParticle.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public ExplicitGroup choice();
 
Example #3
Source File: Types.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement(value="schema",ns="http://www.w3.org/2001/XMLSchema")
public Schema schema();
 
Example #4
Source File: WsgenTool.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
QualifiedName service();
 
Example #5
Source File: Types.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement(value="schema",ns="http://www.w3.org/2001/XMLSchema")
public Schema schema();
 
Example #6
Source File: NestedParticle.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public ExplicitGroup choice();
 
Example #7
Source File: BindingOperationType.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public StartWithExtensionsType input();
 
Example #8
Source File: BindingOperationType.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement(value="operation",ns="http://schemas.xmlsoap.org/wsdl/soap12/")
public com.sun.xml.internal.ws.wsdl.writer.document.soap12.SOAPOperation soap12Operation();
 
Example #9
Source File: BindingOperationType.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public StartWithExtensionsType output();
 
Example #10
Source File: BindingOperationType.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public StartWithExtensionsType output();
 
Example #11
Source File: WsgenTool.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
QualifiedName port();
 
Example #12
Source File: ContentModelContainer.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
ExplicitGroup choice();
 
Example #13
Source File: BindingOperationType.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement(value="operation",ns="http://schemas.xmlsoap.org/wsdl/soap12/")
public com.sun.xml.internal.ws.wsdl.writer.document.soap12.SOAPOperation soap12Operation();
 
Example #14
Source File: ComplexContent.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public ComplexExtension extension();
 
Example #15
Source File: NestedParticle.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public ExplicitGroup choice();
 
Example #16
Source File: Annotated.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public Annotation annotation();
 
Example #17
Source File: BindingOperationType.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public Fault fault();
 
Example #18
Source File: Documented.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public com.sun.xml.internal.ws.wsdl.writer.document.Documented documentation(String value);
 
Example #19
Source File: ComplexTypeModel.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public ComplexContent complexContent();
 
Example #20
Source File: WsgenTool.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
QualifiedName service();
 
Example #21
Source File: SimpleTypeHost.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public SimpleType simpleType();
 
Example #22
Source File: Message.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public Part part();
 
Example #23
Source File: ComplexContent.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public ComplexRestriction restriction();
 
Example #24
Source File: Schema.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public Annotation annotation();
 
Example #25
Source File: TypeDefParticle.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public ExplicitGroup all();
 
Example #26
Source File: AttrDecls.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public Wildcard anyAttribute();
 
Example #27
Source File: SimpleDerivation.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public SimpleRestriction restriction();
 
Example #28
Source File: WsgenTool.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
QualifiedName service();
 
Example #29
Source File: Types.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement(value="schema",ns="http://www.w3.org/2001/XMLSchema")
public Schema schema();
 
Example #30
Source File: Definitions.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@XmlElement
public Service service();