|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.ox.tool.TidyCommand
public class TidyCommand
Nested Class Summary | |
---|---|
class |
TidyCommand.TidyResult
|
Constructor Summary | |
---|---|
TidyCommand(Model model)
Create a new tidy command. |
Method Summary | |
---|---|
Model |
getModel()
Return the model this command uses. |
static org.w3c.tidy.Tidy |
newTidy(Model model)
Return a new tidy configuration for the model |
TidyCommand.TidyResult |
process(PackageData data)
Tidy on the HTML so that it can be converted to PSML with XSLT. |
void |
setDownload(File download)
|
void |
setHtmlPath(String htmlPath)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TidyCommand(Model model)
model
- The model to useMethod Detail |
---|
public void setHtmlPath(String htmlPath)
htmlPath
- the htmlPath to setpublic void setDownload(File download)
download
- The public download folder.public TidyCommand.TidyResult process(PackageData data)
Implementation notes:
process
in interface Command<TidyCommand.TidyResult>
html
- The HTML
public static org.w3c.tidy.Tidy newTidy(Model model)
model
-
public Model getModel()
Command
getModel
in interface Command<TidyCommand.TidyResult>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |