Package org.processmining.plugins.tsml
Class TsmlElement
- java.lang.Object
-
- org.processmining.plugins.tsml.TsmlElement
-
- Direct Known Subclasses:
Tsml,TsmlAnnotation,TsmlAnnotationGraphics,TsmlArcGraphics,TsmlBasicObject,TsmlDimension,TsmlFill,TsmlFont,TsmlLine,TsmlNodeGraphics,TsmlOffset,TsmlPosition,TsmlText,TsmlToolSpecific
public class TsmlElement extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description intlineNumberjava.lang.StringtagThe PNML tag for this element.
-
Constructor Summary
Constructors Constructor Description TsmlElement(java.lang.String tag)Creates a fresh PNML element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckValidity(Tsml tsml)Default check for validity: No action.protected java.lang.StringexportAttribute(java.lang.String tag, java.lang.String value, Tsml tsml)Default way to export some attribute.protected java.lang.StringexportAttributes(Tsml tsml)Exports all standard attributes: None.java.lang.StringexportElement(Tsml tsml)Exports the element.protected java.lang.StringexportElements(Tsml tsml)Exports all standard elements: None.protected voidimportAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports all standard attributes: None.voidimportElement(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports the given element.protected booleanimportElements(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports all standard child elements: None.protected voidimportText(java.lang.String text, Tsml tsml)Imports standard text: No action.
-
-
-
Method Detail
-
importElement
public void importElement(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports the given element.- Parameters:
xpp-tsml-
-
exportElement
public java.lang.String exportElement(Tsml tsml)
Exports the element.- Returns:
-
importAttributes
protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports all standard attributes: None. If some subclass has attributes, this method needs to be overruled by it.- Parameters:
xpp-tsml-
-
exportAttributes
protected java.lang.String exportAttributes(Tsml tsml)
Exports all standard attributes: None. If some subclass has attributes, this method needs to be overruled by it.- Returns:
-
importElements
protected boolean importElements(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Imports all standard child elements: None. If some subclass has child elements, this method needs to be overruled by it.- Parameters:
xpp-tsml-- Returns:
-
exportElements
protected java.lang.String exportElements(Tsml tsml)
Exports all standard elements: None. If some subclass has child elements, this method needs to be overruled by it.- Returns:
-
importText
protected void importText(java.lang.String text, Tsml tsml)Imports standard text: No action. If some subclass needs to import text, this method needs to be overruled by it.- Parameters:
text-tsml-
-
exportAttribute
protected java.lang.String exportAttribute(java.lang.String tag, java.lang.String value, Tsml tsml)Default way to export some attribute.- Parameters:
tag- The attribute tag.value- The attribute value.- Returns:
-
checkValidity
protected void checkValidity(Tsml tsml)
Default check for validity: No action. If some subclass needs to check validity, this method needs to be overruled by it.- Parameters:
tsml-
-
-