|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.norna.ContextEvent
Context event. This event comes in four types identified by static memebrs of this class. The event carries the context URL the object the event is about as well as an optional new URL if the event is about a renaming.
All context URLs in this class must be in their full form. E.g. must start with 'norna://'.
| Field Summary | |
static int |
OBJECT_BOUND
|
static int |
OBJECT_UNBOUND
|
| Constructor Summary | |
ContextEvent(int type,
java.lang.String oldUrl,
java.lang.String newUrl)
Constructor for ContextEvent. |
|
| Method Summary | |
java.lang.String |
getNewUrl()
Get the new context URL for the object in question. |
java.lang.String |
getOldUrl()
Get the old context URL of the object that triggered this event. |
int |
getType()
Get the type of this event. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int OBJECT_BOUND
public static final int OBJECT_UNBOUND
| Constructor Detail |
public ContextEvent(int type,
java.lang.String oldUrl,
java.lang.String newUrl)
type - Event typeoldUrl - Old anmespace URL| Method Detail |
public java.lang.String getNewUrl()
public java.lang.String getOldUrl()
public int getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||