Package javax.xml.bind.annotation

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


            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

            // 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

    XmlType typeInfo = (XmlType) generatedClass.getAnnotation(XmlType.class);
    assertNotNull(typeInfo);
    assertEquals(requestWrapper.getElementNamespace(), typeInfo.namespace());
    assertEquals(requestWrapper.getElementName(), typeInfo.name());
    assertEquals(2, typeInfo.propOrder().length);
    assertEquals("s", typeInfo.propOrder()[0]);
    assertEquals("l", typeInfo.propOrder()[1]);
       
    Map<String, Object> properties = new HashMap<String, Object>();
    Short shortValue = Short.valueOf((short) 123);
View Full Code Here

    XmlType typeInfo = (XmlType) generatedClass.getAnnotation(XmlType.class);
    assertNotNull(typeInfo);
    assertEquals(requestWrapper.getElementNamespace(), typeInfo.namespace());
    assertEquals(requestWrapper.getElementName(), typeInfo.name());
    assertEquals(2, typeInfo.propOrder().length);
    assertEquals("s", typeInfo.propOrder()[0]);
    assertEquals("l", typeInfo.propOrder()[1]);
       
    Map<String, Object> properties = new HashMap<String, Object>();
    Short shortValue = Short.valueOf((short) 123);
    Long longValue = Long.valueOf((long) 987654);
View Full Code Here

    assertNotNull(typeInfo);
    assertEquals(requestWrapper.getElementNamespace(), typeInfo.namespace());
    assertEquals(requestWrapper.getElementName(), typeInfo.name());
    assertEquals(2, typeInfo.propOrder().length);
    assertEquals("s", typeInfo.propOrder()[0]);
    assertEquals("l", typeInfo.propOrder()[1]);
       
    Map<String, Object> properties = new HashMap<String, Object>();
    Short shortValue = Short.valueOf((short) 123);
    Long longValue = Long.valueOf((long) 987654);
    properties.put("s", shortValue);
View Full Code Here

    XmlType typeInfo = (XmlType) generatedClass.getAnnotation(XmlType.class);
    assertNotNull(typeInfo);
    assertEquals(responseWrapper.getElementNamespace(), typeInfo.namespace());
    assertEquals(responseWrapper.getElementName(), typeInfo.name());
    assertEquals(1, typeInfo.propOrder().length);
    assertEquals("return", typeInfo.propOrder()[0]);

    Map<String, Object> properties = new HashMap<String, Object>();
    Double doubleValue = Double.valueOf(12345.6789);
    properties.put("return", doubleValue);
View Full Code Here

    XmlType typeInfo = (XmlType) generatedClass.getAnnotation(XmlType.class);
    assertNotNull(typeInfo);
    assertEquals(responseWrapper.getElementNamespace(), typeInfo.namespace());
    assertEquals(responseWrapper.getElementName(), typeInfo.name());
    assertEquals(1, typeInfo.propOrder().length);
    assertEquals("return", typeInfo.propOrder()[0]);

    Map<String, Object> properties = new HashMap<String, Object>();
    Double doubleValue = Double.valueOf(12345.6789);
    properties.put("return", doubleValue);
View Full Code Here

            // 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

            }
            XmlAccessorOrder xmlAccessorOrder = cls.getAnnotation(XmlAccessorOrder.class);
            XmlType xmlTypeAnno = cls.getAnnotation(XmlType.class);
            String[] propertyOrder = null;

            if (xmlTypeAnno != null &&  xmlTypeAnno.propOrder().length > 0) {
                propertyOrder = xmlTypeAnno.propOrder();
                //TODO: handle @XmlAccessOrder
            }

            if (propertyOrder != null && propertyOrder.length == elementList.size()) {
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.