Package com.sun.tools.xjc.generator.annotation.spec

Examples of com.sun.tools.xjc.generator.annotation.spec.XmlRootElementWriter


     
     
      final String mostUsedNamespaceURI = cc._package().getMostUsedNamespaceURI();
      // [RESULT]
      // @XmlRootElement(name = "foo", namespace = "bar://baz")
      final XmlRootElementWriter xrew = cc.clazz.annotate2(XmlRootElementWriter.class);
      xrew.name(xmlRootElementName);
      //xrew.namespace(mostUsedNamespaceURI);
      LOG.info("E> added @XmlRootElement(name = '" + xmlRootElementName + "', namespace = '" + mostUsedNamespaceURI + "')");
      // LOG.info("> added @XmlRootElement(name = '" + xmlRootElementName + "')");
    //}
  }
View Full Code Here


        xmlRootElementName = eliminateTypeSuffixCaseSensitive(cc.implRef.name());
     
      final String mostUsedNamespaceURI = cc._package().getMostUsedNamespaceURI();
      // [RESULT]
      // @XmlRootElement(name = "foo", namespace = "bar://baz")
      final XmlRootElementWriter xrew = cc.implClass.annotate2(XmlRootElementWriter.class);
      xrew.name(xmlRootElementName);
      //if (!mostUsedNamespaceURI.equals("http://www.opengis.net/kml/2.2")) {
      xrew.namespace(mostUsedNamespaceURI);
      //}
      LOG.info("C> added @XmlRootElement(name = '" + xmlRootElementName + "', namespace = '" + mostUsedNamespaceURI + "')");
      // LOG.info("> added @XmlRootElement(name = '" + xmlRootElementName + "')");
   
  }
View Full Code Here

            String namespaceURI = target.getElementName().getNamespaceURI();
            String localPart = target.getElementName().getLocalPart();

            // [RESULT]
            // @XmlRootElement(name="foo", targetNamespace="bar://baz")
            XmlRootElementWriter xrew = cc.implClass.annotate2(XmlRootElementWriter.class);
            xrew.name(localPart);
            if(!namespaceURI.equals(mostUsedNamespaceURI)) // only generate if necessary
                xrew.namespace(namespaceURI);
        }

        if(target.isOrdered()) {
            for(CPropertyInfo p : target.getProperties() ) {
                if( ! (p instanceof CAttributePropertyInfo )) {
View Full Code Here

            String namespaceURI = target.getElementName().getNamespaceURI();
            String localPart = target.getElementName().getLocalPart();

            // [RESULT]
            // @XmlRootElement(name="foo", targetNamespace="bar://baz")
            XmlRootElementWriter xrew = cc.implClass.annotate2(XmlRootElementWriter.class);
            xrew.name(localPart);
            if(!namespaceURI.equals(mostUsedNamespaceURI)) // only generate if necessary
                xrew.namespace(namespaceURI);
        }

        if(target.isOrdered()) {
            for(CPropertyInfo p : target.getProperties() ) {
                if( ! (p instanceof CAttributePropertyInfo )) {
View Full Code Here

            String namespaceURI = target.getElementName().getNamespaceURI();
            String localPart = target.getElementName().getLocalPart();

            // [RESULT]
            // @XmlRootElement(name="foo", targetNamespace="bar://baz")
            XmlRootElementWriter xrew = cc.implClass.annotate2(XmlRootElementWriter.class);
            xrew.name(localPart);
            if (!namespaceURI.equals(mostUsedNamespaceURI)) // only generate if necessary
            {
                xrew.namespace(namespaceURI);
            }
        }

        if (target.isOrdered()) {
            for (CPropertyInfo p : target.getProperties()) {
View Full Code Here

            String namespaceURI = target.getElementName().getNamespaceURI();
            String localPart = target.getElementName().getLocalPart();

            // [RESULT]
            // @XmlRootElement(name="foo", targetNamespace="bar://baz")
            XmlRootElementWriter xrew = cc.implClass.annotate2(XmlRootElementWriter.class);
            xrew.name(localPart);
            if (!namespaceURI.equals(mostUsedNamespaceURI)) // only generate if necessary
            {
                xrew.namespace(namespaceURI);
            }
        }

        if (target.isOrdered()) {
            for (CPropertyInfo p : target.getProperties()) {
View Full Code Here

TOP

Related Classes of com.sun.tools.xjc.generator.annotation.spec.XmlRootElementWriter

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.