Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to add an interface into to list of providedinterfaces of Port?
How to add an interface into to list of providedinterfaces of Port? [message #473886] Fri, 06 July 2007 19:25 Go to next message
ueli.brawand is currently offline ueli.brawandFriend
Messages: 27
Registered: July 2009
Location: Berne, Switzerland
Junior Member
Hi NG

I'm working on a java interface create Eclipse UML model out of the
repository of a uml tool.
Now I stuck in how to add an interface to the list of provided or required
interfaces with java code.

Any help is welcome.

Regards, Ueli
Re: How to add an interface into to list of providedinterfaces of Port? [message #473892 is a reply to message #473886] Mon, 09 July 2007 13:32 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Ueli,

You don't mention what you want to add a required or provided interface to?
A component or a port?
To add a provided interface to a component, you can create a Realization
from the component to the interface.
To add a required interface to a component you can create a Usage from the
the component to the interface.
To create a provided interface to a port you have two options, type the port
by the interface or type it by a classifier that has a realization to the
interface.
To create a required interface to a port you have to type it by a classifier
that has a usage relationship to the interface.

- James.


"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6m4vf$te7$1@build.eclipse.org...
> Hi NG
>
> I'm working on a java interface create Eclipse UML model out of the
> repository of a uml tool.
> Now I stuck in how to add an interface to the list of provided or required
> interfaces with java code.
>
> Any help is welcome.
>
> Regards, Ueli
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #473897 is a reply to message #473892] Mon, 09 July 2007 19:55 Go to previous messageGo to next message
ueli.brawand is currently offline ueli.brawandFriend
Messages: 27
Registered: July 2009
Location: Berne, Switzerland
Junior Member
Hi James

Thanx for your hints. Yes I forgot to specify where I wand to add required
and provided interfaces to.
I use it with ports. If you write "type the port by the interface" does this
mean port.setType(interface), or does it mean something else?
The same for required interface.

~Ueli

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f6tdd3$up7$2@build.eclipse.org...
> Hi Ueli,
>
> You don't mention what you want to add a required or provided interface
> to?
> A component or a port?
> To add a provided interface to a component, you can create a Realization
> from the component to the interface.
> To add a required interface to a component you can create a Usage from the
> the component to the interface.
> To create a provided interface to a port you have two options, type the
> port
> by the interface or type it by a classifier that has a realization to the
> interface.
> To create a required interface to a port you have to type it by a
> classifier
> that has a usage relationship to the interface.
>
> - James.
>
>
> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
> news:f6m4vf$te7$1@build.eclipse.org...
>> Hi NG
>>
>> I'm working on a java interface create Eclipse UML model out of the
>> repository of a uml tool.
>> Now I stuck in how to add an interface to the list of provided or
>> required
>> interfaces with java code.
>>
>> Any help is welcome.
>>
>> Regards, Ueli
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #473899 is a reply to message #473892] Mon, 09 July 2007 19:58 Go to previous messageGo to next message
ueli.brawand is currently offline ueli.brawandFriend
Messages: 27
Registered: July 2009
Location: Berne, Switzerland
Junior Member
Hi again

Where do I find some documentation about API of Eclipse.UML2 explaining such
topics?

~Ueli

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f6tdd3$up7$2@build.eclipse.org...
> Hi Ueli,
>
> You don't mention what you want to add a required or provided interface
> to?
> A component or a port?
> To add a provided interface to a component, you can create a Realization
> from the component to the interface.
> To add a required interface to a component you can create a Usage from the
> the component to the interface.
> To create a provided interface to a port you have two options, type the
> port
> by the interface or type it by a classifier that has a realization to the
> interface.
> To create a required interface to a port you have to type it by a
> classifier
> that has a usage relationship to the interface.
>
> - James.
>
>
> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
> news:f6m4vf$te7$1@build.eclipse.org...
>> Hi NG
>>
>> I'm working on a java interface create Eclipse UML model out of the
>> repository of a uml tool.
>> Now I stuck in how to add an interface to the list of provided or
>> required
>> interfaces with java code.
>>
>> Any help is welcome.
>>
>> Regards, Ueli
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #473900 is a reply to message #473897] Mon, 09 July 2007 22:21 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Ueli,

Yes, port.setType(...) is what that means.

- James.



"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u3sa$343$1@build.eclipse.org...
> Hi James
>
> Thanx for your hints. Yes I forgot to specify where I wand to add required
> and provided interfaces to.
> I use it with ports. If you write "type the port by the interface" does
> this mean port.setType(interface), or does it mean something else?
> The same for required interface.
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #473936 is a reply to message #473899] Mon, 09 July 2007 22:21 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u41q$3fk$1@build.eclipse.org...
> Hi again
>
> Where do I find some documentation about API of Eclipse.UML2 explaining
> such topics?
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #473937 is a reply to message #473899] Mon, 09 July 2007 22:24 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Ueli,

The best documentation on how to use required/provided interfaces or any
aspect of UML is the UML superstructure specification at www.omg.org.

The opensource API is based on the superstructure specification.

-James


"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u41q$3fk$1@build.eclipse.org...
> Hi again
>
> Where do I find some documentation about API of Eclipse.UML2 explaining
> such topics?
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #473941 is a reply to message #473899] Tue, 10 July 2007 13:44 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Ueli,

As James, has stated, the UML2 API is, for the most part, a direct
implementation of the UML specification, so referencing the specification
should help. In this case, for example, you'd find the following
descriptions of Port::required and Port::provided:

.. required: Interface References the interfaces specifying the set of
operations and receptions that the classifier expects its environment to
handle. This association is derived as the set of interfaces required by the
type of the port or its supertypes.

.. provided: Interface References the interfaces specifying the set of
operations and receptions that the classifier offers to its environment, and
which it will handle either directly or by forwarding it to a part of its
internal structure. This association is derived from the interfaces realized
by the type of the port or by the type of the port, if the port was typed by
an interface.

Note that text that is similar to this can also be found in the Javadoc for
the corresponding getters, Port#getRequireds() and Port#getProvideds().

Kenn

"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u41q$3fk$1@build.eclipse.org...
> Hi again
>
> Where do I find some documentation about API of Eclipse.UML2 explaining
> such topics?
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #473944 is a reply to message #473899] Tue, 10 July 2007 19:49 Go to previous message
ueli.brawand is currently offline ueli.brawandFriend
Messages: 27
Registered: July 2009
Location: Berne, Switzerland
Junior Member
Hi all

Thank you for your help. I think with the superstructure and the UML2 API I
can help myself.

~Ueli

"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u41q$3fk$1@build.eclipse.org...
> Hi again
>
> Where do I find some documentation about API of Eclipse.UML2 explaining
> such topics?
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #623306 is a reply to message #473886] Mon, 09 July 2007 13:32 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Ueli,

You don't mention what you want to add a required or provided interface to?
A component or a port?
To add a provided interface to a component, you can create a Realization
from the component to the interface.
To add a required interface to a component you can create a Usage from the
the component to the interface.
To create a provided interface to a port you have two options, type the port
by the interface or type it by a classifier that has a realization to the
interface.
To create a required interface to a port you have to type it by a classifier
that has a usage relationship to the interface.

- James.


"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6m4vf$te7$1@build.eclipse.org...
> Hi NG
>
> I'm working on a java interface create Eclipse UML model out of the
> repository of a uml tool.
> Now I stuck in how to add an interface to the list of provided or required
> interfaces with java code.
>
> Any help is welcome.
>
> Regards, Ueli
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #623309 is a reply to message #473892] Mon, 09 July 2007 19:55 Go to previous message
ueli.brawand is currently offline ueli.brawandFriend
Messages: 27
Registered: July 2009
Location: Berne, Switzerland
Junior Member
Hi James

Thanx for your hints. Yes I forgot to specify where I wand to add required
and provided interfaces to.
I use it with ports. If you write "type the port by the interface" does this
mean port.setType(interface), or does it mean something else?
The same for required interface.

~Ueli

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f6tdd3$up7$2@build.eclipse.org...
> Hi Ueli,
>
> You don't mention what you want to add a required or provided interface
> to?
> A component or a port?
> To add a provided interface to a component, you can create a Realization
> from the component to the interface.
> To add a required interface to a component you can create a Usage from the
> the component to the interface.
> To create a provided interface to a port you have two options, type the
> port
> by the interface or type it by a classifier that has a realization to the
> interface.
> To create a required interface to a port you have to type it by a
> classifier
> that has a usage relationship to the interface.
>
> - James.
>
>
> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
> news:f6m4vf$te7$1@build.eclipse.org...
>> Hi NG
>>
>> I'm working on a java interface create Eclipse UML model out of the
>> repository of a uml tool.
>> Now I stuck in how to add an interface to the list of provided or
>> required
>> interfaces with java code.
>>
>> Any help is welcome.
>>
>> Regards, Ueli
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #623310 is a reply to message #473892] Mon, 09 July 2007 19:58 Go to previous message
ueli.brawand is currently offline ueli.brawandFriend
Messages: 27
Registered: July 2009
Location: Berne, Switzerland
Junior Member
Hi again

Where do I find some documentation about API of Eclipse.UML2 explaining such
topics?

~Ueli

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f6tdd3$up7$2@build.eclipse.org...
> Hi Ueli,
>
> You don't mention what you want to add a required or provided interface
> to?
> A component or a port?
> To add a provided interface to a component, you can create a Realization
> from the component to the interface.
> To add a required interface to a component you can create a Usage from the
> the component to the interface.
> To create a provided interface to a port you have two options, type the
> port
> by the interface or type it by a classifier that has a realization to the
> interface.
> To create a required interface to a port you have to type it by a
> classifier
> that has a usage relationship to the interface.
>
> - James.
>
>
> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
> news:f6m4vf$te7$1@build.eclipse.org...
>> Hi NG
>>
>> I'm working on a java interface create Eclipse UML model out of the
>> repository of a uml tool.
>> Now I stuck in how to add an interface to the list of provided or
>> required
>> interfaces with java code.
>>
>> Any help is welcome.
>>
>> Regards, Ueli
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #623311 is a reply to message #473897] Mon, 09 July 2007 22:21 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Ueli,

Yes, port.setType(...) is what that means.

- James.



"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u3sa$343$1@build.eclipse.org...
> Hi James
>
> Thanx for your hints. Yes I forgot to specify where I wand to add required
> and provided interfaces to.
> I use it with ports. If you write "type the port by the interface" does
> this mean port.setType(interface), or does it mean something else?
> The same for required interface.
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #623312 is a reply to message #473899] Mon, 09 July 2007 22:21 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u41q$3fk$1@build.eclipse.org...
> Hi again
>
> Where do I find some documentation about API of Eclipse.UML2 explaining
> such topics?
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #623313 is a reply to message #473899] Mon, 09 July 2007 22:24 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Ueli,

The best documentation on how to use required/provided interfaces or any
aspect of UML is the UML superstructure specification at www.omg.org.

The opensource API is based on the superstructure specification.

-James


"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u41q$3fk$1@build.eclipse.org...
> Hi again
>
> Where do I find some documentation about API of Eclipse.UML2 explaining
> such topics?
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #623640 is a reply to message #473899] Tue, 10 July 2007 13:44 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Ueli,

As James, has stated, the UML2 API is, for the most part, a direct
implementation of the UML specification, so referencing the specification
should help. In this case, for example, you'd find the following
descriptions of Port::required and Port::provided:

.. required: Interface References the interfaces specifying the set of
operations and receptions that the classifier expects its environment to
handle. This association is derived as the set of interfaces required by the
type of the port or its supertypes.

.. provided: Interface References the interfaces specifying the set of
operations and receptions that the classifier offers to its environment, and
which it will handle either directly or by forwarding it to a part of its
internal structure. This association is derived from the interfaces realized
by the type of the port or by the type of the port, if the port was typed by
an interface.

Note that text that is similar to this can also be found in the Javadoc for
the corresponding getters, Port#getRequireds() and Port#getProvideds().

Kenn

"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u41q$3fk$1@build.eclipse.org...
> Hi again
>
> Where do I find some documentation about API of Eclipse.UML2 explaining
> such topics?
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
Re: How to add an interface into to list of providedinterfaces of Port? [message #623643 is a reply to message #473899] Tue, 10 July 2007 19:49 Go to previous message
ueli.brawand is currently offline ueli.brawandFriend
Messages: 27
Registered: July 2009
Location: Berne, Switzerland
Junior Member
Hi all

Thank you for your help. I think with the superstructure and the UML2 API I
can help myself.

~Ueli

"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u41q$3fk$1@build.eclipse.org...
> Hi again
>
> Where do I find some documentation about API of Eclipse.UML2 explaining
> such topics?
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
Previous Topic:how to delete class.attribute(property)
Next Topic:Problems saving model (losing hrefs)
Goto Forum:
  


Current Time: Fri Mar 29 14:39:02 GMT 2024

Powered by FUDForum. Page generated in 0.05517 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top