|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.ibm.jdg2e.simplemodel.internal.RoadTrip
Represents a domain specific model. Although simple in its implementation,
it does contain content at the start, can have Location s
added and removed, and will report content changes at a high level.
Access to the model is intended to be done using the associated plug-in.
SimpleModel.getRoadTrip()| Field Summary |
| Fields inherited from interface com.ibm.jdg2e.simplemodel.core.IRoadTrip |
LISTADD, LISTREMOVE |
| Constructor Summary | |
RoadTrip()
Initializes the road trip data when the object is created. |
|
RoadTrip(boolean reset)
Optionally initializes the road trip data when the object is created. |
|
| Method Summary | |
ILocation |
addLocation(java.lang.String name,
java.lang.String activity,
int political)
Create a Location in the RoadTrip. |
void |
addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
Add a property change listener. |
java.lang.Object[] |
getLocations()
Returns the model content in the form of an array. |
void |
removeLocation(ILocation location)
The referenced Location is removed. |
void |
removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
Removes a property change listener. |
void |
resetList()
Creates an initial set of Location object instances in the RoadTrip. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RoadTrip()
SimpleModel.getRoadTrip()public RoadTrip(boolean reset)
SimpleModel.getRoadTrip()| Method Detail |
public ILocation addLocation(java.lang.String name,
java.lang.String activity,
int political)
Location in the RoadTrip. If
nulls are passed default values are used.
addLocation in interface IRoadTripname - name for new object instanceactivity - description for activitypolitical - identifier for political unit
IRoadTrip.addLocation(java.lang.String, java.lang.String, int)public void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
addPropertyChangeListener in interface IRoadTriplistener - public java.lang.Object[] getLocations()
getLocations in interface IRoadTrippublic void removeLocation(ILocation location)
removeLocation in interface IRoadTriplocation - public void removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
removePropertyChangeListener in interface IRoadTriplistener - public void resetList()
resetList in interface IRoadTrip
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||