incubator-yoko-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Vescovi (JIRA)" <j...@apache.org>
Subject [jira] Created: (YOKO-192) Add support for IDL interface attributes
Date Wed, 11 Oct 2006 11:33:24 GMT
Add support for IDL interface attributes
----------------------------------------

                 Key: YOKO-192
                 URL: http://issues.apache.org/jira/browse/YOKO-192
             Project: Yoko - CORBA Server
          Issue Type: New Feature
          Components: Idl2Wsdl
    Affects Versions: 1.0-incubating-M2
            Reporter: Matteo Vescovi


Getter and setter operations need to be generated for IDL interface attributes.
Getter operations need to be generated for IDL interface readonly attributes.

e.g.

// IDL
interface MyAttrs {
attribute string strAttr;
readonly attribute long longAttr;
};

<?xml version="1.0"?>
<definitions name="anExample"
targetNamespace=" http://www.omg.org/IDL-Mapped/"
xmlns:tns="http://www.omg.org/IDL-Mapped/"
xmlns:CORBA=http://www.omg.org/IDL-WSDL/1.0/
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl" >
<import
namespace=" http://www.omg.org/IDL-WSDL/1.0/"/>
<!-- Messages related to port: MyAttrs -->
<message name="MyAttrs._get_strAttrResponse" >
<part name="_return" type="xsd:string"/>
</message>
<message name="MyAttras._set_strAttr" />
<part name="value" type="xsd:string"/>
</message>
<message name="MyAttrs._get_longAttrResponse" >
<part name="_return" type="xsd:int"/>
</message>
<!-- port for MyAttrs -->
<portType name="MyAttrs" >
<operation name="_get_strAttr" >
<output message="tns:MyAttrs._get_strAttrResponse"/>
</operation>
<operation name="_set_strAttr" >
<input message="tns:MyAttrs._set_strAttr"/>
</operation>
<operation name="_get_longAttr" >
<output message="tns:MyAttrs._get_longAttrResponse"/>
</operation>
</portType>
    <binding name="MyAttrsCORBABinding" type="tns:MyAttrs">
        <corba:binding repositoryID="IDL:MyAttrs:1.0"/>
        <operation name="_get_strAttr">
            <corba:operation name="_get_strAttr">
                <corba:return idltype="corba:string" name="return"/>
            </corba:operation>
            <input name="_get_strAttr"/>
            <output name="_get_strAttrResponse"/>
        </operation>
        <operation name="_set_strAttr">
            <corba:operation name="_set_strAttr">
                <corba:param idltype="corba:string" mode="in" name="_arg"/>
            </corba:operation>
            <input name="_set_strAttr"/>
            <output name="_set_strAttrResponse"/>
        </operation>
        <operation name="_get_longAttr">
            <corba:operation name="_get_longAttr">
                <corba:return idltype="corba:long" name="return"/>
            </corba:operation>
            <input name="_get_longAttr"/>
            <output name="_get_longAttrResponse"/>
        </operation>
    </binding>
    <service name="MyAttrsCORBAService">
        <port binding="tns:MyAttrsCORBABinding" name="MyAttrsCORBAPort">
            <corba:address location="IOR:"/>
        </port>
    </service>
</definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message