|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object swpatho.ap1.editor.lib.XmlLib
Title: pathoEdit
Description: Editor für Befundberichte - FU Berlin 2003
Copyright: Copyright (c) 2003
Class Description: various functions around reading and writing the xml files
Company:
Constructor Summary | |
XmlLib()
|
Method Summary | |
static org.w3c.dom.Node |
createSubSection(java.lang.String cap,
java.lang.String cont)
creates an new section with a certain name and content |
static java.lang.String |
escapeHTML(java.lang.String s)
|
static java.lang.String |
generateXMLString(org.w3c.dom.Document doc)
writes a DOM Document as a XMl String |
static org.w3c.dom.Document |
getNewDocument()
creates a new empty Document |
static java.lang.String |
nodes2rdf(java.util.Vector nodes,
int individualCount)
generates a rdf xml string out of a Vector of DOM Nodes. |
static java.lang.String |
normalizeWord(java.lang.String s)
normalizeString Before a query, the String is normalized, changing the first letter to lower case |
static org.w3c.dom.Document |
openFile(java.lang.String filename)
reads a file into a DOM |
static boolean |
saveFile(org.w3c.dom.Document doc,
java.lang.String filename)
saves a DOM Document to a specified file in XML format, overwrites it if exists |
static org.w3c.dom.Document |
string2xml(java.lang.String s)
generates a DOM Document out of a XML String |
static java.lang.String |
unescapeHTML(java.lang.String s,
int f)
converts escaped string to real html (e.g. |
static void |
updateDOM(org.w3c.dom.Document doc,
EditableBefundTab tab)
extracts the text of the new report and updates the DOM |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlLib()
Method Detail |
public static boolean saveFile(org.w3c.dom.Document doc, java.lang.String filename)
doc
- Document to be saved to a filefilename
- output path
public static org.w3c.dom.Document string2xml(java.lang.String s)
s
- input XML String
public static final java.lang.String unescapeHTML(java.lang.String s, int f)
s
- Stringf
- recursive function, start it with 0
public static final java.lang.String escapeHTML(java.lang.String s)
public static java.lang.String generateXMLString(org.w3c.dom.Document doc)
doc
- Document
public static java.lang.String nodes2rdf(java.util.Vector nodes, int individualCount)
nodes
- VectorindividualCount
- actual number of individuals in Knowledge Base for
generating individual name.
public static void updateDOM(org.w3c.dom.Document doc, EditableBefundTab tab)
doc
- the DOM Document, which will be updated and returnedtab
- new report, contains all text fieldspublic static org.w3c.dom.Document openFile(java.lang.String filename)
filename
- String
public static org.w3c.dom.Document getNewDocument()
public static org.w3c.dom.Node createSubSection(java.lang.String cap, java.lang.String cont)
cap
- Caption namecont
- Content to be saved
public static java.lang.String normalizeWord(java.lang.String s)
s
- String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |