|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deckfour.xes.extension.std.XExtendedEvent
public class XExtendedEvent
Helper class. This class can be used to dynamically wrap any event, and provides an extended set of getter and setter methods for typically-available extension attributes.
Field Summary | |
---|---|
protected XEvent |
original
The original, wrapped event. |
Constructor Summary | |
---|---|
XExtendedEvent(XEvent original)
Constructs a new wrapper object. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones this event, i.e. |
boolean |
equals(java.lang.Object o)
Tests for equality of type and ID |
XAttributeMap |
getAttributes()
Retrieves the attributes set for this element. |
java.util.Set<XExtension> |
getExtensions()
Retrieves the extensions used by this element, i.e. |
java.lang.String |
getGroup()
Returns the group of the event, as defined by the Organizational extension. |
XID |
getID()
Returns the id of the event |
java.lang.String |
getInstance()
Retrieves the activity instance of this event, as defined by the Concept extension. |
java.util.List<java.lang.String> |
getModelReferences()
Returns the list of model references defined for this event, as defined in the Semantic extension. |
java.util.List<java.net.URI> |
getModelReferenceURIs()
Returns the list of model reference URIs defined for this event, as defined in the Semantic extension. |
java.lang.String |
getName()
Retrieves the activity name of this event, as defined by the Concept extension. |
java.lang.String |
getResource()
Returns the resource of the event, as defined by the Organizational extension. |
java.lang.String |
getRole()
Returns the role of the event, as defined by the Organizational extension. |
XLifecycleExtension.StandardModel |
getStandardTransition()
Returns the standard lifecycle transition of the event, as defined by the Lifecycle extension. |
java.util.Date |
getTimestamp()
Retrieves the timestamp of the event, as defined by the Time extension. |
java.lang.String |
getTransition()
Returns the lifecycle transition of the event, as defined by the Lifecycle extension. |
int |
hashCode()
Returns the hashCode of the ID |
void |
setAttributes(XAttributeMap attributes)
Sets the map of attributes for this element. |
void |
setGroup(java.lang.String group)
Sets the group of the event, as defined by the Organizational extension. |
void |
setInstance(java.lang.String instance)
Sets the activity instance of this event, as defined by the Concept extension. |
void |
setModelReferences(java.util.List<java.lang.String> modelReferences)
Sets the list of model reference strings defined for this event, as defined in the Semantic extension. |
void |
setModelReferenceURIs(java.util.List<java.net.URI> modelReferenceURIs)
Sets the list of model reference URIs defined for this event, as defined in the Semantic extension. |
void |
setName(java.lang.String name)
Sets the activity name of this event, as defined by the Concept extension. |
void |
setResource(java.lang.String resource)
Sets the resource of the event, as defined by the Organizational extension. |
void |
setRole(java.lang.String role)
Sets the role of the event, as defined by the Organizational extension. |
void |
setStandardTransition(XLifecycleExtension.StandardModel transition)
Sets the standard lifecycle transition of the event, as defined by the Lifecycle extension. |
void |
setTimestamp(java.util.Date timestamp)
Sets the timestamp of the event, as defined by the Time extension. |
void |
setTimestamp(long timestamp)
Sets the timestamp of the event, as defined by the Time extension. |
void |
setTransition(java.lang.String transition)
Sets the lifecycle transition of the event, as defined by the Lifecycle extension. |
static XExtendedEvent |
wrap(XEvent event)
Static wrapper method. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XEvent original
Constructor Detail |
---|
public XExtendedEvent(XEvent original)
original
- The original event to be wrapped.Method Detail |
---|
public static XExtendedEvent wrap(XEvent event)
event
- The original event to be wrapped.
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Activity name of the event.public java.lang.String getInstance()
public void setInstance(java.lang.String instance)
instance
- Activity instance of the event.public java.util.Date getTimestamp()
null
if not defined.public void setTimestamp(java.util.Date timestamp)
timestamp
- Timestamp, as Date, to be set.public void setTimestamp(long timestamp)
timestamp
- Timestamp, as long value in milliseconds, to be set.public java.lang.String getResource()
null
, if not defined.public void setResource(java.lang.String resource)
resource
- Resource string.public java.lang.String getRole()
null
, if not defined.public void setRole(java.lang.String role)
role
- Role string.public java.lang.String getGroup()
null
, if not defined.public void setGroup(java.lang.String group)
group
- Group string.public java.lang.String getTransition()
null
, if not
defined.public void setTransition(java.lang.String transition)
transition
- Lifecycle transition string.public XLifecycleExtension.StandardModel getStandardTransition()
null
,
if not defined.public void setStandardTransition(XLifecycleExtension.StandardModel transition)
transition
- Standard lifecycle transition object.public java.util.List<java.lang.String> getModelReferences()
public void setModelReferences(java.util.List<java.lang.String> modelReferences)
modelReferences
- List of model reference strings.public java.util.List<java.net.URI> getModelReferenceURIs()
public void setModelReferenceURIs(java.util.List<java.net.URI> modelReferenceURIs)
modelReferenceURIs
- List of model reference URIs.public XAttributeMap getAttributes()
XAttributable
getAttributes
in interface XAttributable
public java.util.Set<XExtension> getExtensions()
XAttributable
getExtensions
in interface XAttributable
public void setAttributes(XAttributeMap attributes)
XAttributable
setAttributes
in interface XAttributable
attributes
- A map of attributes.public java.lang.Object clone()
clone
in interface XElement
clone
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public XID getID()
XEvent
getID
in interface XEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |