Package org.apache.cxf.aegis.type

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


    private List overrideTypes;
    private Service service;
   
    public AegisDatabinding() {
        super();
        this.typeMappingRegistry = new DefaultTypeMappingRegistry(true);
        part2Type = new HashMap<MessagePartInfo, Type>();
    }
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

        addNamespace("b", "urn:Bean");
        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

        addNamespace("b", "urn:Bean");
        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

        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

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

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

        DefaultTypeMappingRegistry reg = new DefaultTypeMappingRegistry();
        config = reg.getConfiguration();
        XMLTypeCreator creator = new XMLTypeCreator();
        creator.setConfiguration(reg.getConfiguration());
        Java5TypeCreator next = new Java5TypeCreator();
        next.setConfiguration(reg.getConfiguration());
        creator.setNextCreator(next);
        reg.createDefaultMappings();
        tm = (CustomTypeMapping)reg.getDefaultTypeMapping();
        tm.setTypeCreator(creator);
    }
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.