|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.event.GTDeltaImpl
Describes the extent of changes.
The "delta" acts as a series of bread crumbs allowing you the listener to figure out what changed where.
Nested Class Summary |
Nested classes inherited from class org.geotools.event.GTDelta |
GTDelta.Kind |
Field Summary |
Fields inherited from interface org.geotools.event.GTDelta |
NO_CHILDREN, NO_INDEX |
Constructor Summary | |
GTDeltaImpl(GTNote notification,
GTDelta.Kind kind,
java.lang.Object value,
java.lang.Object oldValue)
Create a delta, with no children. |
|
GTDeltaImpl(GTNote notification,
GTDelta.Kind kind,
java.lang.Object value,
java.lang.Object oldValue,
GTDelta delta)
Create a delta with with a list element child delta. |
|
GTDeltaImpl(GTNote notification,
GTDelta.Kind kind,
java.lang.Object value,
java.lang.Object oldValue,
java.util.List children)
Create a delta, completely specifying all values. |
|
GTDeltaImpl(GTNote notification,
java.lang.Object before,
java.lang.Object after)
Does the right thing, aka magic. |
Method Summary | |
void |
accept(GTDeltaVisitor visitor)
Accepts the given visitor. |
java.util.List |
getChildren()
Finds and returns deltas for specificly changed constructs. |
GTDelta.Kind |
getKind()
Returns the kind of this delta. |
java.lang.String |
getName()
Name of property being affected. |
java.lang.Object |
getOldValue()
Construct being replaced with a changed, getValue is the replacing value. |
int |
getPosition()
Position in a "list" where the change occured, or NO_INDEX. |
java.lang.Object |
getValue()
Affected construct, getKind & getChildern indicate specific details of the change. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GTDeltaImpl(GTNote notification, java.lang.Object before, java.lang.Object after)
This constructor is provided to make things easier, if your experience is not magic please skip this and try the next constructor.
Magic:
notification
- before
- after
- public GTDeltaImpl(GTNote notification, GTDelta.Kind kind, java.lang.Object value, java.lang.Object oldValue)
notification
- kind
- value
- oldValue
- public GTDeltaImpl(GTNote notification, GTDelta.Kind kind, java.lang.Object value, java.lang.Object oldValue, GTDelta delta)
This can be used to communicate a batch of changes, such as adding and removing sections from a list, or the results of a transformation.
notification
- kind
- value
- oldValue
- delta
- public GTDeltaImpl(GTNote notification, GTDelta.Kind kind, java.lang.Object value, java.lang.Object oldValue, java.util.List children)
notification
- kind
- value
- oldValue
- children
- Method Detail |
public java.lang.String getName()
GTDelta
getName
in interface GTDelta
null
for rootpublic int getPosition()
GTDelta
getPosition
in interface GTDelta
public GTDelta.Kind getKind()
GTDelta
Normally, one of ADDED
, REMOVED
or
CHANGED
.
getKind
in interface GTDelta
Kind.ADDED
,
Kind.REMOVED
,
Kind.CHANGED
public java.lang.Object getValue()
GTDelta
getValue
in interface GTDelta
public java.lang.Object getOldValue()
GTDelta
getOldValue
in interface GTDelta
public java.util.List getChildren()
GTDelta
This code may be considered more accessable then the use of GTDeltaVisitor.
getChildren
in interface GTDelta
public void accept(GTDeltaVisitor visitor)
GTDelta
accept
in interface GTDelta
visitor
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |