Package org.processmining.plugins.tsml
Class TsmlBasicObject
- java.lang.Object
-
- org.processmining.plugins.tsml.TsmlElement
-
- org.processmining.plugins.tsml.TsmlBasicObject
-
- Direct Known Subclasses:
TsmlNode,TsmlTransition
public class TsmlBasicObject extends TsmlElement
-
-
Field Summary
Fields Modifier and Type Field Description protected TsmlNamenameName element.protected java.util.List<TsmlToolSpecific>toolSpecificListToolSpecifics elements (there may be multiple).-
Fields inherited from class org.processmining.plugins.tsml.TsmlElement
lineNumber, tag
-
-
Constructor Summary
Constructors Constructor Description TsmlBasicObject(java.lang.String tag)Creates a fresh basic PNML object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckValidity(Tsml tsml)Checks validity.protected java.lang.StringexportAttributes(Tsml tsml)Exports all attributes.protected java.lang.StringexportElements(Tsml tsml)Exports all elements.java.lang.StringgetName(java.lang.String defaultName)protected voidimportAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports all known attributes.protected booleanimportElements(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Checks whether the current start tag is known.TsmlBasicObjectmarshall(java.lang.String label, int intWeight)protected voidunmarshall(State state, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights)protected voidunmarshall(Transition transition, java.lang.Object sourceId, java.lang.Object targetId, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights)-
Methods inherited from class org.processmining.plugins.tsml.TsmlElement
exportAttribute, exportElement, importElement, importText
-
-
-
-
Field Detail
-
name
protected TsmlName name
Name element.
-
toolSpecificList
protected java.util.List<TsmlToolSpecific> toolSpecificList
ToolSpecifics elements (there may be multiple).
-
-
Method Detail
-
getName
public java.lang.String getName(java.lang.String defaultName)
-
importElements
protected boolean importElements(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Checks whether the current start tag is known. If known, it imports the corresponding child element and returns true. Otherwise, it returns false.- Overrides:
importElementsin classTsmlElement- Returns:
- Whether the start tag was known.
-
exportElements
protected java.lang.String exportElements(Tsml tsml)
Exports all elements.- Overrides:
exportElementsin classTsmlElement- Returns:
-
importAttributes
protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports all known attributes.- Overrides:
importAttributesin classTsmlElement
-
exportAttributes
protected java.lang.String exportAttributes(Tsml tsml)
Exports all attributes.- Overrides:
exportAttributesin classTsmlElement- Returns:
-
checkValidity
protected void checkValidity(Tsml tsml)
Checks validity. Should have a source and a target.- Overrides:
checkValidityin classTsmlElement
-
unmarshall
protected void unmarshall(State state, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights)
-
unmarshall
protected void unmarshall(Transition transition, java.lang.Object sourceId, java.lang.Object targetId, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights)
-
marshall
public TsmlBasicObject marshall(java.lang.String label, int intWeight)
-
-