|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModelChangeDelta
| Field Summary | |
|---|---|
static int |
ADD
|
static java.lang.String |
ATTRIBUTE
|
static int |
COPY
|
static java.lang.String |
LITERAL
|
static java.lang.String |
METHOD
|
static int |
MOVE
|
static int |
REMOVE
|
static int |
SET
|
static int |
UNKNOWN
|
| Method Summary | |
|---|---|
void |
apply(java.util.Collection<java.lang.Object> toCleanUp,
java.util.Collection<IAbstractArtifact> toSave)
Apply the given delta. |
URI |
getAffectedModelComponentURI()
The Model component URI on which the delta has occured |
ITigerstripeModelProject[] |
getAffectedProjects()
Returns all the affected projects affected by the model change Note that if a model change occurs in a project referenced by other Tigerstripe Model project, all referencing projects will be included here. |
IResource |
getAffectedResource()
Return the resource where this delta is taking place |
java.lang.String |
getFeature()
Returns the feature being affected for the model component |
java.lang.Object |
getNewValue()
On a 0 returns the new value of the feature, on an 1 returns the add value of the feature, on a 2 returns null |
java.lang.Object |
getOldValue()
On a 0 returns the old value of the feature, on an 1 returns null, on a 2 returns the value that was deleted |
ITigerstripeModelProject |
getProject()
Returns the project where this delta originated. |
int |
getType()
Returns the type of the model change |
| Field Detail |
|---|
static final int SET
static final int ADD
static final int REMOVE
static final int COPY
static final int MOVE
static final int UNKNOWN
static final java.lang.String ATTRIBUTE
static final java.lang.String METHOD
static final java.lang.String LITERAL
| Method Detail |
|---|
int getType()
URI getAffectedModelComponentURI()
java.lang.Object getNewValue()
java.lang.Object getOldValue()
java.lang.String getFeature()
ITigerstripeModelProject[] getAffectedProjects()
throws TigerstripeException
TigerstripeExceptionITigerstripeModelProject getProject()
IResource getAffectedResource()
void apply(java.util.Collection<java.lang.Object> toCleanUp,
java.util.Collection<IAbstractArtifact> toSave)
throws TigerstripeException
toCleanUp - - upon return, this collection will contain a list of
artifacts to remove.toSave - - if not null, this will contain the list of artifacts to save
to commit the delta. If null, each delta is followed by a
save.
TigerstripeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||