org.alltimeflashdreamer.dimdom
Class SimpleSiteData
java.lang.Object
|
+--org.alltimeflashdreamer.dimdom.AbstractXHTMLSiteData
|
+--org.alltimeflashdreamer.dimdom.SimpleSiteData
- All Implemented Interfaces:
- XHTMLSiteData
- Direct Known Subclasses:
- ComplexSiteProcessor, SampleSiteProcessor
- public class SimpleSiteData
- extends AbstractXHTMLSiteData
Title: SimpleSiteData
Description: This simple implementation of AbstractXHTMLSiteData provides two
constructors, one for each of the two parameters of those at least one must
be defined. It is part of the reference implementation and can be extended in
case more or different functionality shall be added.
Constructor Summary |
SimpleSiteData(String sInput)
Constructor parses a file source, if the given String doesn't contain "
", else the given String is assumed to be an XHTML string and is
parsed itself (note: maximum lenght of java.lang.String is the
limitation!). |
SimpleSiteData(URL url)
Constructor needed to parse an URL source. |
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 |
SimpleSiteData
public SimpleSiteData(String sInput)
- Constructor parses a file source, if the given String doesn't contain "
", else the given String is assumed to be an XHTML string and is
parsed itself (note: maximum lenght of java.lang.String is the
limitation!).
- Parameters:
sInput
- the name of the template file or the string to be parsed
SimpleSiteData
public SimpleSiteData(URL url)
- Constructor needed to parse an URL source.
- Parameters:
url
- the URL to read from
getXHTMLDocumentClassName
public String getXHTMLDocumentClassName()
- Returns the XHTMLDocument implementing instance of the reference
implementation.
- Overrides:
getXHTMLDocumentClassName
in class AbstractXHTMLSiteData
- Returns:
- SimpleSiteData uses "org.alltimeflashdreamer.dimdom.SimpleDocument"
createDimDomCommand
public DimDomNodeImpl createDimDomCommand(String sNodeIdentifier)
- Creates a new command object, after appending the previous one to the
internal, ordered list of commands (only if not the first).
- Parameters:
sNodeIdentifier
- - Returns:
- the next freshly created DimDom command object, ready to
be "dynamized"