public class TsmlElement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
lineNumber |
java.lang.String |
tag
The PNML tag for this element.
|
Constructor and Description |
---|
TsmlElement(java.lang.String tag)
Creates a fresh PNML element.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkValidity(Tsml tsml)
Default check for validity: No action.
|
protected java.lang.String |
exportAttribute(java.lang.String tag,
java.lang.String value,
Tsml tsml)
Default way to export some attribute.
|
protected java.lang.String |
exportAttributes(Tsml tsml)
Exports all standard attributes: None.
|
java.lang.String |
exportElement(Tsml tsml)
Exports the element.
|
protected java.lang.String |
exportElements(Tsml tsml)
Exports all standard elements: None.
|
protected void |
importAttributes(org.xmlpull.v1.XmlPullParser xpp,
Tsml tsml)
Imports all standard attributes: None.
|
void |
importElement(org.xmlpull.v1.XmlPullParser xpp,
Tsml tsml)
Imports the given element.
|
protected boolean |
importElements(org.xmlpull.v1.XmlPullParser xpp,
Tsml tsml)
Imports all standard child elements: None.
|
protected void |
importText(java.lang.String text,
Tsml tsml)
Imports standard text: No action.
|
public java.lang.String tag
public int lineNumber
public TsmlElement(java.lang.String tag)
tag
- public void importElement(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)
xpp
- tsml
- public java.lang.String exportElement(Tsml tsml)
protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)
xpp
- tsml
- protected java.lang.String exportAttributes(Tsml tsml)
protected boolean importElements(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)
xpp
- tsml
- protected java.lang.String exportElements(Tsml tsml)
protected void importText(java.lang.String text, Tsml tsml)
text
- tsml
- protected java.lang.String exportAttribute(java.lang.String tag, java.lang.String value, Tsml tsml)
tag
- The attribute tag.value
- The attribute value.protected void checkValidity(Tsml tsml)
tsml
-