|
||||||||||
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 | |
---|---|
Object |
clone()
Creates an identical copy of this element. |
XAttributeMap |
getAttributes()
Retrieves the attributes set for this element. |
Set<XExtension> |
getExtensions()
Retrieves the extensions used by this element, i.e. |
String |
getGroup()
Returns the group of the event, as defined by the Organizational extension. |
String |
getInstance()
Retrieves the activity instance of this event, as defined by the Concept extension. |
List<String> |
getModelReferences()
Returns the list of model references defined for this event, as defined in the Semantic extension. |
List<URI> |
getModelReferenceURIs()
Returns the list of model reference URIs defined for this event, as defined in the Semantic extension. |
String |
getName()
Retrieves the activity name of this event, as defined by the Concept extension. |
String |
getResource()
Returns the resource of the event, as defined by the Organizational extension. |
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. |
Date |
getTimestamp()
Retrieves the timestamp of the event, as defined by the Time extension. |
String |
getTransition()
Returns the lifecycle transition of the event, as defined by the Lifecycle extension. |
void |
setAttributes(XAttributeMap attributes)
Sets the map of attributes for this element. |
void |
setGroup(String group)
Sets the group of the event, as defined by the Organizational extension. |
void |
setInstance(String instance)
Sets the activity instance of this event, as defined by the Concept extension. |
void |
setModelReferences(List<String> modelReferences)
Sets the list of model reference strings defined for this event, as defined in the Semantic extension. |
void |
setModelReferenceURIs(List<URI> modelReferenceURIs)
Sets the list of model reference URIs defined for this event, as defined in the Semantic extension. |
void |
setName(String name)
Sets the activity name of this event, as defined by the Concept extension. |
void |
setResource(String resource)
Sets the resource of the event, as defined by the Organizational extension. |
void |
setRole(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(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(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 |
---|
equals, finalize, getClass, hashCode, 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 String getName()
public void setName(String name)
name
- Activity name of the event.public String getInstance()
public void setInstance(String instance)
instance
- Activity instance of the event.public Date getTimestamp()
null
if not defined.public void setTimestamp(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 String getResource()
null
, if not defined.public void setResource(String resource)
resource
- Resource string.public String getRole()
null
, if not defined.public void setRole(String role)
role
- Role string.public String getGroup()
null
, if not defined.public void setGroup(String group)
group
- Group string.public String getTransition()
null
, if not defined.public void setTransition(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 List<String> getModelReferences()
public void setModelReferences(List<String> modelReferences)
modelReferences
- List of model reference strings.public List<URI> getModelReferenceURIs()
public void setModelReferenceURIs(List<URI> modelReferenceURIs)
modelReferenceURIs
- List of model reference URIs.public XAttributeMap getAttributes()
XAttributable
getAttributes
in interface XAttributable
public Set<XExtension> getExtensions()
XAttributable
getExtensions
in interface XAttributable
public void setAttributes(XAttributeMap attributes)
XAttributable
setAttributes
in interface XAttributable
attributes
- A map of attributes.public Object clone()
XElement
clone
in interface XElement
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |