|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--DocumentReader
|
+--DocumentWriter
DocumentReader.
DocumentReader| Field Summary | |
(package private) static java.lang.String |
CHANNEL_SEPARATOR
Separator sequence used in Uppaal channel names |
boolean |
debug
Spam out debuggin information, if debug is true |
protected org.apache.crimson.tree.XmlDocument |
doc
XML document where the written version is constructed |
long |
geoCount
Parameter for default layout computatation |
long |
geoXOffset
|
long |
geoYOffset
|
long |
globalGeoXOffset
x-Distance from upper left corner |
long |
globalGeoYOffset
y-Distance from upper left corner |
(package private) static long |
idNameCount
Counter to make introduced ID names unique |
(package private) static long |
locationNameCount
Counter to make introduced location names unique |
static long |
locNameXOffset
|
static long |
locNameYOffset
|
(package private) static char |
NAME_SEPARATOR_CHAR
Separator that can be used in <name> elements |
(package private) static char |
SAFE_SEPARATOR_CHAR
Separator that can be used everywhere |
(package private) static boolean |
sanityChecks
Do (possibly time-consuming) sanity checks, if true |
(package private) static long |
synchronisationNameCount
Counter to make introduced channel names unique |
(package private) static long |
templateNameCount
Counter to make introduced template names unique |
| Fields inherited from class DocumentReader |
hashOriginalIDsToElements, origDoc |
| Constructor Summary | |
DocumentWriter()
Default Constructor: Creates the (global) document |
|
| Method Summary | |
protected static void |
addCoordinatesToElement(org.w3c.dom.Element el)
Set x and y to some value. |
protected static void |
addCoordinatesToElement(org.w3c.dom.Element el,
long x,
long y)
Set x and y to specified values. |
protected void |
addDefaultLocationCoordinates(org.w3c.dom.Element location)
|
protected static void |
addIDToElement(org.w3c.dom.Element el)
Invent a fresh unique ID for this element. |
protected org.w3c.dom.Element |
addNameToElement(org.w3c.dom.Element el,
java.lang.String name)
Insert a child node containing a supplided name by default, add coordinates next to el; can be changed afterwards if required. Relies on the fact, that a name element is always the first child. Returns name Element. |
protected void |
addTextualContentToElement(org.w3c.dom.Element el,
java.lang.String text)
Add textual content to an Element |
void |
appendComment(org.w3c.dom.Node node,
java.lang.String text)
Append comment text as last child of a Node |
private org.w3c.dom.Element |
createNameElement(java.lang.String name)
Returns a Element that is a name tag with specified content |
protected static java.lang.String |
freshLocationName()
Return a new, unique location name |
protected static java.lang.String |
freshSynchronisationName()
Return a new, unique channel name (without !/?) |
protected static java.lang.String |
freshTemplateName()
Return a new, unique template name |
protected static java.lang.String |
inventFreshID()
Return a unique ID string |
static java.lang.String |
makeIDSafe(java.lang.String name)
Transform the ID (Attribute value) to a safe version, i.e. |
static java.lang.String |
makeNameSafe(java.lang.String name)
Transform the name (cdata content of a |
static java.lang.String |
makeSignalSafe(java.lang.String name)
Transform the signal (i.e. |
protected void |
resetDefaultLayout()
Start coordinate-counting anew |
void |
testGeoCordinates(long upto)
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
static final java.lang.String CHANNEL_SEPARATOR
static final char SAFE_SEPARATOR_CHAR
static final char NAME_SEPARATOR_CHAR
public boolean debug
static boolean sanityChecks
static long locationNameCount
static long synchronisationNameCount
static long idNameCount
static long templateNameCount
protected org.apache.crimson.tree.XmlDocument doc
public long globalGeoXOffset
public long globalGeoYOffset
public long geoXOffset
public long geoYOffset
public static long locNameXOffset
public static long locNameYOffset
public long geoCount
| Constructor Detail |
public DocumentWriter()
| Method Detail |
protected static java.lang.String freshTemplateName()
protected static java.lang.String freshLocationName()
throws java.lang.Exception
protected static java.lang.String freshSynchronisationName()
protected static java.lang.String inventFreshID()
public static java.lang.String makeNameSafe(java.lang.String name)
public static java.lang.String makeSignalSafe(java.lang.String name)
public static java.lang.String makeIDSafe(java.lang.String name)
protected void resetDefaultLayout()
protected void addDefaultLocationCoordinates(org.w3c.dom.Element location)
throws java.lang.Exception
public void testGeoCordinates(long upto)
protected static void addCoordinatesToElement(org.w3c.dom.Element el)
protected static void addCoordinatesToElement(org.w3c.dom.Element el,
long x,
long y)
protected static void addIDToElement(org.w3c.dom.Element el)
protected org.w3c.dom.Element addNameToElement(org.w3c.dom.Element el,
java.lang.String name)
protected void addTextualContentToElement(org.w3c.dom.Element el,
java.lang.String text)
public void appendComment(org.w3c.dom.Node node,
java.lang.String text)
private org.w3c.dom.Element createNameElement(java.lang.String name)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||