public class Viewpoint
extends java.lang.Object
Viewpoint
s are used to create capability sets.Modifier and Type | Field and Description |
---|---|
static Viewpoint |
MODEL
The MODEL viewpoint depicts that the model itself describes the activities
contributing to the viewpoint.
|
Constructor and Description |
---|
Viewpoint(java.lang.String name) |
Viewpoint(java.lang.String name,
java.util.Set<java.lang.String> activityIds) |
Modifier and Type | Method and Description |
---|---|
void |
addViewpointListener(IViewpointListener viewpointListener)
Adds an instance of
IViewpointListener to
listen for changes. |
protected void |
fireViewpointChanged(ViewpointChangedEvent viewpointEvent)
Fires a
ViewpointChangedEvent to all registered
listeners. |
java.util.Set<java.lang.String> |
getEnabledActivityIds()
Get the viewpoint enabled activities.
|
java.lang.String |
getName()
Get the viewpoint name.
|
void |
removeViewpointListener(IViewpointListener viewpointListener)
Removes an instance of
IViewpointListener
listening for changes. |
void |
setEnabledActivityIds(java.util.Set<java.lang.String> activityIds)
Set the viewpoint enabled activities.
|
public static final Viewpoint MODEL
public Viewpoint(java.lang.String name)
public Viewpoint(java.lang.String name, java.util.Set<java.lang.String> activityIds)
public java.lang.String getName()
public java.util.Set<java.lang.String> getEnabledActivityIds()
public void setEnabledActivityIds(java.util.Set<java.lang.String> activityIds)
activityIds
- the enabled activity IDspublic void addViewpointListener(IViewpointListener viewpointListener)
IViewpointListener
to
listen for changes.viewpointListener
- the listener to addprotected void fireViewpointChanged(ViewpointChangedEvent viewpointEvent)
ViewpointChangedEvent
to all registered
listeners.viewpointEvent
- the event to firepublic void removeViewpointListener(IViewpointListener viewpointListener)
IViewpointListener
listening for changes.viewpointListener
- the listener to remove