Package org.apache.tuscany.sca.binding.corba

Examples of org.apache.tuscany.sca.binding.corba.CorbaBinding


    /**
     * @see org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor#read(javax.xml.stream.XMLStreamReader)
     */
    public CorbaBinding read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException {
        CorbaBinding binding = factory.createCorbaBinding();

        // Read the policies
        policyProcessor.readPolicies(binding, reader);

        binding.setHost(reader.getAttributeValue(null, "host"));
        String port = reader.getAttributeValue(null, "port");
        if (port != null) {
            binding.setPort(Integer.parseInt(port));
        }

        // Read the name
        String name = reader.getAttributeValue(null, "name");
        if (name != null) {
            binding.setName(name);
        }

        // Read binding URI
        String uri = reader.getAttributeValue(null, "uri");
        if (uri != null) {
            binding.setURI(uri);
        }
       
        // Read CORBA id
        String id = reader.getAttributeValue(null, "id");
        if (id != null) {
            binding.setId(id);
        }
        return binding;
    }
View Full Code Here


    /**
     * @see org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor#read(javax.xml.stream.XMLStreamReader)
     */
    public CorbaBinding read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException {
        CorbaBinding binding = new CorbaBindingImpl();

        // Read the policies
        policyProcessor.readPolicies(binding, reader);

        binding.setHost(reader.getAttributeValue(null, "host"));
        String port = reader.getAttributeValue(null, "port");
        if (port != null) {
            binding.setPort(Integer.parseInt(port));
        }

        // Read the name
        String name = reader.getAttributeValue(null, "name");
        if (name != null) {
            binding.setName(name);
        }

        // Read binding URI
        String uri = reader.getAttributeValue(null, "uri");
        if (uri != null) {
            binding.setURI(uri);
        }
       
        // Read CORBA id
        String id = reader.getAttributeValue(null, "id");
        if (id != null) {
            binding.setId(id);
        }
        return binding;
    }
View Full Code Here

    /**
     * @see org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor#read(javax.xml.stream.XMLStreamReader)
     */
    public CorbaBinding read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException {
        CorbaBinding binding = factory.createCorbaBinding();

        // Read the policies
        policyProcessor.readPolicies(binding, reader);

        binding.setHost(reader.getAttributeValue(null, "host"));
        String port = reader.getAttributeValue(null, "port");
        if (port != null) {
            binding.setPort(Integer.parseInt(port));
        }

        // Read the name
        String name = reader.getAttributeValue(null, "name");
        if (name != null) {
            binding.setName(name);
        }

        // Read binding URI
        String uri = reader.getAttributeValue(null, "uri");
        if (uri != null) {
            binding.setURI(uri);
        }
       
        // Read CORBA id
        String id = reader.getAttributeValue(null, "id");
        if (id != null) {
            binding.setId(id);
        }
        return binding;
    }
View Full Code Here

    /**
     * @see org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor#read(javax.xml.stream.XMLStreamReader)
     */
    public CorbaBinding read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException {
        CorbaBinding binding = new CorbaBindingImpl();

        // Read the policies
        policyProcessor.readPolicies(binding, reader);

        binding.setHost(reader.getAttributeValue(null, "host"));
        String port = reader.getAttributeValue(null, "port");
        if (port != null) {
            binding.setPort(Integer.parseInt(port));
        }

        // Read the name
        String name = reader.getAttributeValue(null, "name");
        if (name != null) {
            binding.setName(name);
        }

        // Read binding URI
        String uri = reader.getAttributeValue(null, "uri");
        if (uri != null) {
            binding.setURI(uri);
        }
       
        // Read CORBA id
        String id = reader.getAttributeValue(null, "id");
        if (id != null) {
            binding.setId(id);
        }
        return binding;
    }
View Full Code Here

    /**
     * @see org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor#read(javax.xml.stream.XMLStreamReader)
     */
    public CorbaBinding read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException {
        CorbaBinding binding = factory.createCorbaBinding();

        // Read the policies
        policyProcessor.readPolicies(binding, reader);

        binding.setHost(reader.getAttributeValue(null, "host"));
        String port = reader.getAttributeValue(null, "port");
        if (port != null) {
            binding.setPort(Integer.parseInt(port));
        }

        // Read the name
        String name = reader.getAttributeValue(null, "name");
        if (name != null) {
            binding.setName(name);
        }

        // Read binding URI
        String uri = reader.getAttributeValue(null, "uri");
        if (uri != null) {
            binding.setURI(uri);
        }
       
        // Read CORBA id
        String id = reader.getAttributeValue(null, "id");
        if (id != null) {
            binding.setId(id);
        }
        return binding;
    }
View Full Code Here

    /**
     * @see org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor#read(javax.xml.stream.XMLStreamReader)
     */
    public CorbaBinding read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException {
        CorbaBinding binding = new CorbaBindingImpl();

        // Read the policies
        policyProcessor.readPolicies(binding, reader);

        binding.setHost(reader.getAttributeValue(null, "host"));
        String port = reader.getAttributeValue(null, "port");
        if (port != null) {
            binding.setPort(Integer.parseInt(port));
        }

        // Read the name
        String name = reader.getAttributeValue(null, "name");
        if (name != null) {
            binding.setName(name);
        }

        // Read binding URI
        String uri = getURIString(reader, "uri");
        if (uri != null) {
            binding.setURI(uri);
        }
       
        // Read CORBA id
        String id = reader.getAttributeValue(null, "id");
        if (id != null) {
            binding.setId(id);
        }
        return binding;
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.corba.CorbaBinding

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.