Package org.processmining.plugins.tsml
Class TsmlNode
- java.lang.Object
-
- org.processmining.plugins.tsml.TsmlElement
-
- org.processmining.plugins.tsml.TsmlBasicObject
-
- org.processmining.plugins.tsml.TsmlNode
-
- Direct Known Subclasses:
TsmlState
public class TsmlNode extends TsmlBasicObject
-
-
Field Summary
Fields Modifier and Type Field Description protected TsmlNodeGraphicsgraphicsGraphics element.protected java.lang.StringidId attribute.-
Fields inherited from class org.processmining.plugins.tsml.TsmlBasicObject
name, toolSpecificList
-
Fields inherited from class org.processmining.plugins.tsml.TsmlElement
lineNumber, tag
-
-
Constructor Summary
Constructors Constructor Description TsmlNode(java.lang.String tag)Creates a fresh PNML node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckValidity(Tsml tsml)Checks the validity of this node.protected java.lang.StringexportAttributes(Tsml tsml)Exports all attributes.protected java.lang.StringexportElements(Tsml tsml)Exports all child elements.TsmlNodeGraphicsgetGraphics()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.TsmlNodemarshall(State state, java.lang.String id, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights, org.processmining.models.connections.GraphLayoutConnection layout)protected voidunmarshall(State state, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights, org.processmining.models.connections.GraphLayoutConnection layout)-
Methods inherited from class org.processmining.plugins.tsml.TsmlBasicObject
getName, marshall, unmarshall, unmarshall
-
Methods inherited from class org.processmining.plugins.tsml.TsmlElement
exportAttribute, exportElement, importElement, importText
-
-
-
-
Field Detail
-
id
protected java.lang.String id
Id attribute.
-
graphics
protected TsmlNodeGraphics graphics
Graphics element.
-
-
Method Detail
-
importAttributes
protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports all known attributes.- Overrides:
importAttributesin classTsmlBasicObject
-
exportAttributes
protected java.lang.String exportAttributes(Tsml tsml)
Exports all attributes.- Overrides:
exportAttributesin classTsmlBasicObject- Returns:
-
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 classTsmlBasicObject- Returns:
- Whether the start tag was known.
-
exportElements
protected java.lang.String exportElements(Tsml tsml)
Exports all child elements.- Overrides:
exportElementsin classTsmlBasicObject- Returns:
-
checkValidity
protected void checkValidity(Tsml tsml)
Checks the validity of this node. Should have an id attribute.- Overrides:
checkValidityin classTsmlBasicObject
-
getGraphics
public TsmlNodeGraphics getGraphics()
-
unmarshall
protected void unmarshall(State state, org.processmining.models.graphbased.directed.DirectedGraphElementWeights weights, org.processmining.models.connections.GraphLayoutConnection layout)
-
-