Package org.apache.cxf.aegis.type

Examples of org.apache.cxf.aegis.type.DefaultTypeMappingRegistry


    private DefaultTypeMappingRegistry reg;

    @Test
    public void testBadDescriptorNS() throws Exception {

        reg = new DefaultTypeMappingRegistry(true);
        mapping = reg.createTypeMapping(true);
        try {
            mapping.getTypeCreator().createType(BadBeanDescriptor.class);
            fail("No exception was thrown");
        } catch (DatabindingException e) {
View Full Code Here


    TypeMapping mapping;

    public void setUp() throws Exception {
        super.setUp();

        TypeMappingRegistry reg = new DefaultTypeMappingRegistry(true);
        mapping = reg.createTypeMapping(true);
    }
View Full Code Here

        AegisDatabinding binder = new AegisDatabinding();

        JaxWsServerFactoryBean serviceFactory = new JaxWsServerFactoryBean();
        serviceFactory.getServiceFactory().setDataBinding(binder);

        DefaultTypeMappingRegistry tmr = (DefaultTypeMappingRegistry)binder.getTypeMappingRegistry();
        Configuration configuration = tmr.getConfiguration();
        configuration.setDefaultMinOccurs(1);
        configuration.setDefaultNillable(false);

        // Create a properties hashmap
        Map<String, Object> props = new HashMap<String, Object>();
View Full Code Here

        addNamespace("b", "urn:Bean");
        addNamespace("bz", "urn:beanz");
        addNamespace("a", "urn:anotherns");
        addNamespace("xsi", XmlConstants.XSI_NS);

        reg = new DefaultTypeMappingRegistry(true);
        mapping = reg.createTypeMapping(true);
    }
View Full Code Here

                        + "/xsd:element[@name='int2'][@nillable='true']",
                      schema);
    }
    @Test
    public void testNillableIntMinOccurs1() throws Exception {
        reg = new DefaultTypeMappingRegistry();

        Configuration config = reg.getConfiguration();
        config.setDefaultMinOccurs(1);
        config.setDefaultNillable(false);
View Full Code Here

        assertInvalid("//xsd:complexType[@name='IntBean']/xsd:sequence/xsd:element[@name='int1'][@nillable]",
                      schema);
    }
    @Test
    public void testByteMappings() throws Exception {
        reg = new DefaultTypeMappingRegistry();
        reg.createDefaultMappings();
        mapping = reg.createTypeMapping(true);

        BeanType type = (BeanType)mapping.getTypeCreator().createType(SimpleBean.class);
        type.setTypeClass(SimpleBean.class);
View Full Code Here

    // allow applications to express an opinion about the namespace prefixes.
    private Map<String, String> namespaceMap;
   
    public AegisDatabinding() {
        super();
        this.typeMappingRegistry = new DefaultTypeMappingRegistry(true);
        part2Type = new HashMap<MessagePartInfo, Type>();
    }
View Full Code Here

        AegisDatabinding binder = new AegisDatabinding();

        JaxWsServerFactoryBean serviceFactory = new JaxWsServerFactoryBean();
        serviceFactory.getServiceFactory().setDataBinding(binder);

        DefaultTypeMappingRegistry tmr = (DefaultTypeMappingRegistry)binder.getTypeMappingRegistry();
        Configuration configuration = tmr.getConfiguration();
        configuration.setDefaultMinOccurs(1);
        configuration.setDefaultNillable(false);

        // Create a properties hashmap
        Map<String, Object> props = new HashMap<String, Object>();
View Full Code Here

    private List overrideTypes;
    private Service service;

    public AegisDatabinding() {
        super();
        this.typeMappingRegistry = new DefaultTypeMappingRegistry(true);
        part2Type = new HashMap<MessagePartInfo, Type>();
    }
View Full Code Here

    // allow applications to express an opinion about the namespace prefixes.
    private Map<String, String> namespaceMap;
   
    public AegisDatabinding() {
        super();
        this.typeMappingRegistry = new DefaultTypeMappingRegistry(true);
        part2Type = new HashMap<MessagePartInfo, Type>();
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.aegis.type.DefaultTypeMappingRegistry

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.