java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.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(),
Serialized Form| Nested Class Summary |
|---|
| Nested classes inherited from class java.util.AbstractList |
|---|
|
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| 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. |
|
| 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. |
(package private) void |
firePropertyChange(java.lang.String changeId,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires a property change event object to all registered listeners. |
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.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, remove, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
| Constructor Detail |
public RoadTrip()
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 -
void firePropertyChange(java.lang.String changeId,
java.lang.Object oldValue,
java.lang.Object newValue)
changeId - -
Type of change: LISTADD or LISTREMOVEoldValue - -
null for LISTADD, Removed Location for LISTREMOVEnewValue - -
null for LISTREMOVE, Added Location for LISTADDpublic 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