|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfbench.Library
public class Library
A singleton collection of named XML Documents.
Method Summary | |
---|---|
static org.w3c.dom.Document |
getDocument(java.lang.String docname)
New version: searches using file.ext or if only 'file' is given... |
static javax.xml.parsers.DocumentBuilder |
getDocumentBuilder()
Returns the DocumentBuilder with lazy initialization. |
static java.util.Hashtable |
getDocuments()
Returns the Hashtable whose values are loaded Documents and whose keys are the corresponding LibraryElement names. |
static java.lang.String |
getFilePath(org.w3c.dom.Document doc)
|
static java.lang.String |
getFullDocPath(java.lang.String docname)
|
static javax.xml.parsers.DocumentBuilder |
getNoSchemaDocumentBuilder()
Returns the DocumentBuilder with lazy initialization. |
static org.w3c.dom.Document |
load(java.io.File file)
Loads a Document from the given InputSource, strips its root node and children down to Elements only, enters it into the library and answers the new Document or null if the source cannot be parsed for some reason. |
static org.w3c.dom.Document |
loadNoSchema(java.io.File file)
|
static org.w3c.dom.Document |
parseXML(java.lang.String xml)
Receives string value of XML and parse it into Document |
static void |
putDocument(java.lang.String path,
org.w3c.dom.Document doc)
|
static void |
remove(org.w3c.dom.Document document)
Remove document from 'known' (loaded) documents... |
static void |
remove(java.lang.String fileName)
Remove document from 'known' (loaded) documents... |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
static void |
setDocumentSource(DocumentSource ds)
Sets the DocumentSource for Document retrieval to the given object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.w3c.dom.Document getDocument(java.lang.String docname)
public static javax.xml.parsers.DocumentBuilder getDocumentBuilder()
public static javax.xml.parsers.DocumentBuilder getNoSchemaDocumentBuilder()
public static void setDocumentSource(DocumentSource ds)
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
java.io.IOException
public static java.util.Hashtable getDocuments()
public static org.w3c.dom.Document load(java.io.File file)
public static org.w3c.dom.Document loadNoSchema(java.io.File file)
public static java.lang.String getFilePath(org.w3c.dom.Document doc)
public static java.lang.String getFullDocPath(java.lang.String docname)
public static void remove(java.lang.String fileName)
public static void remove(org.w3c.dom.Document document)
public static org.w3c.dom.Document parseXML(java.lang.String xml)
XML
- public static void putDocument(java.lang.String path, org.w3c.dom.Document doc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |