Package org.jvnet.jaxb.reflection.model.runtime

Examples of org.jvnet.jaxb.reflection.model.runtime.RuntimePropertyInfo


        org.jvnet.jaxb.reflection.model.runtime.RuntimeTypeInfoSet model = create(PurchaseOrderType.class);
        RuntimeClassInfo type = (RuntimeClassInfo)model.getTypeInfo(PurchaseOrderType.class);
        Assert.assertEquals(new QName("http://www.example.com/IPO", "PurchaseOrderType"), type.getTypeName());
        type = (RuntimeClassInfo)model.getTypeInfo(USAddress.class);
        Assert.assertEquals(new QName("http://www.example.com/IPO", "USAddress"), type.getTypeName());
        RuntimePropertyInfo prop = type.getProperty("state");
        Assert.assertNotNull(prop);
        USAddress address = new ObjectFactory().createUSAddress();
        prop.getAccessor().set(address, USState.CA);
        Assert.assertEquals(USState.CA, address.getState());
    }
View Full Code Here


        org.jvnet.jaxb.reflection.model.runtime.RuntimeTypeInfoSet model = create(PurchaseOrderType.class);
        RuntimeClassInfo type = (RuntimeClassInfo)model.getTypeInfo(PurchaseOrderType.class);
        Assert.assertEquals(new QName("http://www.example.com/IPO", "PurchaseOrderType"), type.getTypeName());
        type = (RuntimeClassInfo)model.getTypeInfo(USAddress.class);
        Assert.assertEquals(new QName("http://www.example.com/IPO", "USAddress"), type.getTypeName());
        RuntimePropertyInfo prop = type.getProperty("state");
        Assert.assertNotNull(prop);
        USAddress address = new ObjectFactory().createUSAddress();
        prop.getAccessor().set(address, USState.CA);
        Assert.assertEquals(USState.CA, address.getState());
    }
View Full Code Here

        org.jvnet.jaxb.reflection.model.runtime.RuntimeTypeInfoSet model = create(PurchaseOrderType.class);
        RuntimeClassInfo type = (RuntimeClassInfo)model.getTypeInfo(PurchaseOrderType.class);
        Assert.assertEquals(new QName("http://www.example.com/IPO", "PurchaseOrderType"), type.getTypeName());
        type = (RuntimeClassInfo)model.getTypeInfo(USAddress.class);
        Assert.assertEquals(new QName("http://www.example.com/IPO", "USAddress"), type.getTypeName());
        RuntimePropertyInfo prop = type.getProperty("state");
        Assert.assertNotNull(prop);
        USAddress address = new ObjectFactory().createUSAddress();
        prop.getAccessor().set(address, USState.CA);
        Assert.assertEquals(USState.CA, address.getState());
    }
View Full Code Here

TOP

Related Classes of org.jvnet.jaxb.reflection.model.runtime.RuntimePropertyInfo

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.