Examples of propOrder()


Examples of com.sun.tools.internal.xjc.generator.annotation.spec.XmlTypeWriter.propOrder()

        if(target.isOrdered()) {
            for(CPropertyInfo p : target.getProperties() ) {
                if( ! (p instanceof CAttributePropertyInfo )) {
                    if (!( (p instanceof CReferencePropertyInfo) &&
                           ((CReferencePropertyInfo)p).isDummy())) {
                        xtw.propOrder(p.getName(false));
                    }
                }
            }
        } else {
            // produce empty array
View Full Code Here

Examples of com.sun.tools.xjc.generator.annotation.spec.XmlTypeWriter.propOrder()

        if(target.isOrdered()) {
            for(CPropertyInfo p : target.getProperties() ) {
                if( ! (p instanceof CAttributePropertyInfo )) {
                    if (!( (p instanceof CReferencePropertyInfo) &&
                           ((CReferencePropertyInfo)p).isDummy())) {
                        xtw.propOrder(p.getName(false));
                    }
                }
            }
        } else {
            // produce empty array
View Full Code Here

Examples of javax.xml.bind.annotation.XmlType.propOrder()

          */ 
         try {
           if(object == null || clazz == null || clazz.isPrimitive())
             return null;
           XmlType xmlType = clazz.getAnnotation(XmlType.class);
         if(xmlType != null && xmlType.propOrder().length == 1 &&
             xmlType.name().equals(xmlType.propOrder()[0]+"s")){
           PropertyDescriptor[] props = getBeanProperties(clazz);
          
           if(props.length == 1 &&
               Collection.class.isAssignableFrom(props[0].getReadMethod().getReturnType())){
View Full Code Here

Examples of javax.xml.bind.annotation.XmlType.propOrder()

         try {
           if(object == null || clazz == null || clazz.isPrimitive())
             return null;
           XmlType xmlType = clazz.getAnnotation(XmlType.class);
         if(xmlType != null && xmlType.propOrder().length == 1 &&
             xmlType.name().equals(xmlType.propOrder()[0]+"s")){
           PropertyDescriptor[] props = getBeanProperties(clazz);
          
           if(props.length == 1 &&
               Collection.class.isAssignableFrom(props[0].getReadMethod().getReturnType())){
             return props[0].getReadMethod().invoke(object, (Object[])null);
View Full Code Here

Examples of javax.xml.bind.annotation.XmlType.propOrder()

           
            SchemaInfo faultBeanSchemaInfo = createSchemaIfNeeded(xmlTypeAnno.namespace(), nsMap);
            faultBeanSchema = faultBeanSchemaInfo.getSchema();
        }
       
        if (xmlTypeAnno != null &&  xmlTypeAnno.propOrder().length > 0) {
            propertyOrder = xmlTypeAnno.propOrder();
            //TODO: handle @XmlAccessOrder
        }
                       
        XmlSchema schema = null;
View Full Code Here

Examples of javax.xml.bind.annotation.XmlType.propOrder()

            SchemaInfo faultBeanSchemaInfo = createSchemaIfNeeded(xmlTypeAnno.namespace(), nsMap);
            faultBeanSchema = faultBeanSchemaInfo.getSchema();
        }
       
        if (xmlTypeAnno != null &&  xmlTypeAnno.propOrder().length > 0) {
            propertyOrder = xmlTypeAnno.propOrder();
            //TODO: handle @XmlAccessOrder
        }
                       
        XmlSchema schema = null;
        if (schemaInfo == null) {
View Full Code Here

Examples of javax.xml.bind.annotation.XmlType.propOrder()

           
            SchemaInfo faultBeanSchemaInfo = createSchemaIfNeeded(xmlTypeAnno.namespace(), nsMap);
            faultBeanSchema = faultBeanSchemaInfo.getSchema();
        }
       
        if (xmlTypeAnno != null &&  xmlTypeAnno.propOrder().length > 0) {
            propertyOrder = xmlTypeAnno.propOrder();
            //TODO: handle @XmlAccessOrder
        }
                       
        XmlSchema schema = null;
View Full Code Here

Examples of javax.xml.bind.annotation.XmlType.propOrder()

            SchemaInfo faultBeanSchemaInfo = createSchemaIfNeeded(xmlTypeAnno.namespace(), nsMap);
            faultBeanSchema = faultBeanSchemaInfo.getSchema();
        }
       
        if (xmlTypeAnno != null &&  xmlTypeAnno.propOrder().length > 0) {
            propertyOrder = xmlTypeAnno.propOrder();
            //TODO: handle @XmlAccessOrder
        }
                       
        XmlSchema schema = null;
        if (schemaInfo == null) {
View Full Code Here

Examples of javax.xml.bind.annotation.XmlType.propOrder()

            // set name
            xmlType.setName(typeAnnotation.name());
            // set namespace
            xmlType.setNamespace(typeAnnotation.namespace());
            // set propOrder
            String[] propOrder = typeAnnotation.propOrder();
            // handle case where propOrder is an empty array
            if (propOrder != null) {
                xmlType.getPropOrder();
            }
            for (String prop : propOrder) {
View Full Code Here

Examples of javax.xml.bind.annotation.XmlType.propOrder()

           
            SchemaInfo faultBeanSchemaInfo = createSchemaIfNeeded(xmlTypeAnno.namespace(), nsMap);
            faultBeanSchema = faultBeanSchemaInfo.getSchema();
        }
       
        if (xmlTypeAnno != null &&  xmlTypeAnno.propOrder().length > 0) {
            propertyOrder = xmlTypeAnno.propOrder();
            //TODO: handle @XmlAccessOrder
        }
                       
        XmlSchema schema = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.