Class TsmlOffset
- java.lang.Object
-
- org.processmining.plugins.tsml.TsmlElement
-
- org.processmining.plugins.tsml.graphics.TsmlOffset
-
public class TsmlOffset extends TsmlElement
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAGPNML offset tag.-
Fields inherited from class org.processmining.plugins.tsml.TsmlElement
lineNumber, tag
-
-
Constructor Summary
Constructors Constructor Description TsmlOffset()Creates a fresh PNML offset.
-
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 the dimension.protected voidimportAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports the known attributes.TsmlOffsetmarshall(org.processmining.models.graphbased.AbstractGraphElement element)voidunmarshall(org.processmining.models.graphbased.AbstractGraphElement element)Sets the offset of the given graph element to this offset.-
Methods inherited from class org.processmining.plugins.tsml.TsmlElement
exportAttribute, exportElement, exportElements, importElement, importElements, importText
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
PNML offset tag.- See Also:
- Constant Field Values
-
-
Method Detail
-
importAttributes
protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports the known attributes.- Overrides:
importAttributesin classTsmlElement
-
exportAttributes
protected java.lang.String exportAttributes(Tsml tsml)
Exports the dimension.- Overrides:
exportAttributesin classTsmlElement- Returns:
-
checkValidity
protected void checkValidity(Tsml tsml)
Checks validity. Should have both an x and a y attribute.- Overrides:
checkValidityin classTsmlElement
-
unmarshall
public void unmarshall(org.processmining.models.graphbased.AbstractGraphElement element)
Sets the offset of the given graph element to this offset.- Parameters:
element- The given element.
-
marshall
public TsmlOffset marshall(org.processmining.models.graphbased.AbstractGraphElement element)
-
-