|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject i3.dragos.core.services.events.DragosEvent i3.dragos.gm.core.event.DataEvent i3.dragos.gm.core.event.GraphEntityClassEvent i3.dragos.gm.core.event.GraphEntityClassHierachyEvent
public class GraphEntityClassHierachyEvent
A GraphEntityClassHierachyEvent
is triggered when a super/sub relationship is declared or undeclared in the Schema.
The source of this event will always be the super class.
Field Summary | |
---|---|
static int |
CREATE
Event type constant: Identifies the creation of a super/sub relationship. |
static int |
DELETE
Event type constant: Identifies the deletion of a super/sub relationship. |
Fields inherited from class i3.dragos.gm.core.event.GraphEntityClassEvent |
---|
DECLARE, UNDECLARE |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
GraphEntityClassHierachyEvent(GraphEntityClass superClass,
GraphEntityClass subClass,
int eventType)
Constructs a new event. |
Method Summary | |
---|---|
DataChangeSet |
getAffectedElements()
Returns a DataChangeSet of elements affected by this event. |
GraphEntityClass |
getSubClass()
Returns the sub graph entity class which caused the event. |
GraphEntityClass |
getSuperClass()
Returns the super graph entity class which caused the event. |
Methods inherited from class i3.dragos.gm.core.event.GraphEntityClassEvent |
---|
getGraphEntityClass |
Methods inherited from class i3.dragos.gm.core.event.DataEvent |
---|
getDataSourceURL |
Methods inherited from class i3.dragos.core.services.events.DragosEvent |
---|
getEventClass, getEventType, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CREATE
public static final int DELETE
Constructor Detail |
---|
public GraphEntityClassHierachyEvent(GraphEntityClass superClass, GraphEntityClass subClass, int eventType)
superClass
- The super graph entity class.subClass
- The sub graph entity class.eventType
- The type of event.Method Detail |
---|
public final GraphEntityClass getSuperClass()
getSource()
.
public final GraphEntityClass getSubClass()
public DataChangeSet getAffectedElements()
This method is mainly used by the EventManager to determine which graph entities / graph entity classes need to be marked "dirty".
This list should only contain elements directly affected by the event. Any indirectly affected elements (subclasses, instances...) can be determined later automatically.
The default implementation in DataEvent returns a DataChangeSet that just contains the source of the event.
This implementation returns both the super and the sub class in the DataChangeSet.
getAffectedElements
in class DataEvent
null
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |