DimDom v0.8.2

org.alltimeflashdreamer.dimdom.websitetester
Class SampleSiteProcessor

java.lang.Object
  |
  +--org.alltimeflashdreamer.dimdom.AbstractXHTMLSiteData
        |
        +--org.alltimeflashdreamer.dimdom.SimpleSiteData
              |
              +--org.alltimeflashdreamer.dimdom.websitetester.SampleSiteProcessor
All Implemented Interfaces:
XHTMLSiteData

public class SampleSiteProcessor
extends SimpleSiteData

Title: SampleSiteProcessor
Description: This is one of the reference implementations of the DimDom Website Tester application. It is designed to fill the id nodes defined in the default XHTML content of the text area on the first site. Therefore, if this XHTML input changes, the behaviour of the engine may become inpredictable.
Everything is done within the constructor without arguments , to allow the XHTMLProcessorServlet to get this class via the newInstance method.
The values to set are hard-coded.


Fields inherited from class org.alltimeflashdreamer.dimdom.AbstractXHTMLSiteData
vDimDomNodeImpls
 
Constructor Summary
SampleSiteProcessor()
          The constructor builds a simple list of DimDom commands which are to be processed using the XHTML input string from the Website Tester's text area input.
The method first calls the superclass' constructor using the empty string.
 
Methods inherited from class org.alltimeflashdreamer.dimdom.SimpleSiteData
createDimDomCommand, getXHTMLDocumentClassName
 
Methods inherited from class org.alltimeflashdreamer.dimdom.AbstractXHTMLSiteData
getIdentifier, getNextDimDomNode, getString, getTemplateFileName, getURL, hasMoreDimDomNodeImpls, isFileSource, isStringSource, isURLSource, setString, setTemplateFilename, setURL
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleSiteProcessor

public SampleSiteProcessor()
                    throws DimDomException
The constructor builds a simple list of DimDom commands which are to be processed using the XHTML input string from the Website Tester's text area input.
The method first calls the superclass' constructor using the empty string. (This isn't relevant at all, because the source will be set immediately after the construction of this class). It then adds data and sets attributes to the nodes with the "id" attributes, named "title", "metaDescription", "body", "siteTitle", "imageDescription" and "image".
For each new command that shall be executed on a node, the createDimDomCommand method of the superclass must be called, which returns a new instance of DimDomCommandImpl, the reference implementation class of the DimDomNode interface, which is part of the specification 1.0. With this command object, one's able to use the full functionality on each of the defined nodes.
Because the SampleSiteProcessor is very simple, you should see the tutorial examples for more details too.
Throws:
DimDomException - the exception that tells the caller that the setting of some attribute values was illegal, i.e. the values haven't been XHTML compliant

Copyright (c) 2001/02 by Florian Steinsiepe