Examples of SDOTypes


Examples of org.apache.tuscany.sca.databinding.sdo.SDOTypes

    public SDOTypes read(XMLStreamReader reader,ProcessorContext context) throws ContributionReadException, XMLStreamException {
        assert SDOTypes.SDO_TYPES.equals(reader.getName());

        // FIXME: How do we associate the application HelperContext with the one
        // imported by the composite
        SDOTypes sdoTypes = new SDOTypes();
        String factoryName = reader.getAttributeValue(null, "factory");
        if (factoryName != null) {
            sdoTypes.setFactory(factoryName);
        }
        String location = reader.getAttributeValue(null, "location");
        if (location != null) {
            sdoTypes.setSchemaLocation(location);
        }
        String ns = reader.getAttributeValue(null, "namespace");
        sdoTypes.setNamespace(ns);

        // Skip to end element
        while (reader.hasNext()) {
            if (reader.next() == END_ELEMENT && SDOTypes.SDO_TYPES.equals(reader.getName())) {
                break;
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.sdo.SDOTypes

    public void addModel(Object resolved) {
        if (helperContext == null) {
            helperContext = SDOUtil.createHelperContext();
        }
        SDOTypes types = (SDOTypes)resolved;
        try {
            loadSDOTypes(types, contribution.getModelResolver());
        } catch (ContributionResolveException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.sdo.SDOTypes

        }
        sdoTypes.add(types);
    }

    public Object removeModel(Object resolved) {
        SDOTypes types = (SDOTypes)resolved;
        return sdoTypes.remove(types);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.sdo.SDOTypes

        SDOTypes types = (SDOTypes)resolved;
        return sdoTypes.remove(types);
    }

    public <T> T resolveModel(Class<T> modelClass, T unresolved) {
        SDOTypes types = (SDOTypes)unresolved;
        String ns = types.getNamespace();
        for (SDOTypes t : sdoTypes) {
            if (t.getNamespace().equals(types.getNamespace())) {
                try {
                    loadSDOTypes(types, contribution.getModelResolver());
                } catch (ContributionResolveException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.sdo.SDOTypes

    public SDOTypes read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException {
        assert SDOTypes.SDO_TYPES.equals(reader.getName());

        // FIXME: How do we associate the application HelperContext with the one
        // imported by the composite
        SDOTypes sdoTypes = new SDOTypes();
        String factoryName = reader.getAttributeValue(null, "factory");
        if (factoryName != null) {
            sdoTypes.setFactory(factoryName);
        }
        String location = reader.getAttributeValue(null, "location");
        if (location != null) {
            sdoTypes.setSchemaLocation(location);
        }
        String ns = reader.getAttributeValue(null, "namespace");
        sdoTypes.setNamespace(ns);

        // Skip to end element
        while (reader.hasNext()) {
            if (reader.next() == END_ELEMENT && SDOTypes.SDO_TYPES.equals(reader.getName())) {
                break;
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.sdo.SDOTypes

    public void addModel(Object resolved, ProcessorContext context) {
        if (helperContext == null) {
            helperContext = SDOUtil.createHelperContext();
        }
        this.context = context;
        SDOTypes types = (SDOTypes)resolved;
        try {
            loadSDOTypes(types, contribution.getModelResolver());
        } catch (ContributionResolveException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.sdo.SDOTypes

        }
        sdoTypes.add(types);
    }

    public Object removeModel(Object resolved, ProcessorContext context) {
        SDOTypes types = (SDOTypes)resolved;

        return sdoTypes.remove(types);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.sdo.SDOTypes

        return sdoTypes.remove(types);
    }

    public <T> T resolveModel(Class<T> modelClass, T unresolved, ProcessorContext context) {
        SDOTypes types = (SDOTypes)unresolved;
        String ns = types.getNamespace();
        this.context = context;
        for (SDOTypes t : sdoTypes) {
            if (t.getNamespace().equals(types.getNamespace())) {
                try {
                    loadSDOTypes(types, contribution.getModelResolver());
                } catch (ContributionResolveException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.sdo.SDOTypes

    public SDOTypes read(XMLStreamReader reader,ProcessorContext context) throws ContributionReadException, XMLStreamException {
        assert SDOTypes.SDO_TYPES.equals(reader.getName());

        // FIXME: How do we associate the application HelperContext with the one
        // imported by the composite
        SDOTypes sdoTypes = new SDOTypes();
        String factoryName = reader.getAttributeValue(null, "factory");
        if (factoryName != null) {
            sdoTypes.setFactory(factoryName);
        }
        String location = reader.getAttributeValue(null, "location");
        if (location != null) {
            sdoTypes.setSchemaLocation(location);
        }
        String ns = reader.getAttributeValue(null, "namespace");
        sdoTypes.setNamespace(ns);

        // Skip to end element
        while (reader.hasNext()) {
            if (reader.next() == END_ELEMENT && SDOTypes.SDO_TYPES.equals(reader.getName())) {
                break;
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.sdo.SDOTypes

    public void addModel(Object resolved) {
        if (helperContext == null) {
            helperContext = SDOUtil.createHelperContext();
        }
        SDOTypes types = (SDOTypes)resolved;
        try {
            loadSDOTypes(types, contribution.getModelResolver());
        } catch (ContributionResolveException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
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.