|
DimDom v0.8.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.alltimeflashdreamer.dimdom.DimDom
Title: DimDom
Description: This is the "server core" of the DimDom engine. It works
statically somewhere in the JVM and collects instances of XHTMLDocument
implementing classes, each for one template source file or URL. If the print
method is called, DimDom tries to initialize the processing class and then to
call the processor method of this class. If the current instance is able to
do its job, the fully qualified XHTML string is returned, else the
appropriate exception is thrown.
To allow XHTMLSiteData implementing classes to test the programmer's input,
DimDom provides the getTestDocument method which returns a fully qualified
DOM tree, wrapped in a org.w3c.dom.Document instance. This Document may then
be used to apply modifications of the DOM tree to find out whether the action
leads to a DOMException or is fully XHTML compliant.
Field Summary | |
(package private) static String |
TESTDOCUMENT
Stores a validateable XHTML String which is used to test the programmer's commands. |
Method Summary | |
static void |
addDimDomDocument(String sIdentifier,
XHTMLDocument doc)
Adds a key/value pair to the internal list. |
static XHTMLDocument |
getDimDomDocument(String sIdentifier)
Returns the associated object to sIdentifier from within the internal list. |
static Document |
getTestDocument()
Returns a clone of the internal test document, ready to be used for e.g. |
static String |
print(XHTMLSiteData siteData)
Does everything that is necessary to be done to form a dynamically updated XHTML output out of the values defined in SiteData. Therefore, the internal list of preloaded sites is checked against the String received from the XHTMLSiteData's getIdentifier method. |
static void |
removeDimDomDocument(String sIdentifier)
Removes the associated object of sIdentifier from within the internal list. |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final String TESTDOCUMENT
Method Detail |
public static String print(XHTMLSiteData siteData) throws SAXException, IOException, DimDomException
siteData
- a class that implements
org.alltimeflashdreamer.dimdom.XHTMLSiteDataSAXException
- thrown by the parserIOException
- thrown by the parser (input source)DimDomException
- thrown by the processor, if something is/went
wrongpublic static Document getTestDocument()
public static XHTMLDocument getDimDomDocument(String sIdentifier)
sIdentifier
- as received by the getIdentifer method of the
XHTMLSiteData interfacepublic static void addDimDomDocument(String sIdentifier, XHTMLDocument doc)
sIdentifier
- as received by the getIdentifer method of the
XHTMLSiteData interfacedoc
- the required instance of XHTMLDocumentpublic static void removeDimDomDocument(String sIdentifier)
sIdentifier
- as received by the getIdentifer method of the
XHTMLSiteData interface
|
Copyright (c) 2001/02 by Florian Steinsiepe | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |