Package org.htmlcleaner
Class HtmlCleanerForAnt
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.htmlcleaner.HtmlCleanerForAnt
-
- All Implemented Interfaces:
Cloneable
public class HtmlCleanerForAnt extends org.apache.tools.ant.Task
Support for ANT.
-
-
Constructor Summary
Constructors Constructor Description HtmlCleanerForAnt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addText(String text)
void
execute()
Implementation of Ant task execution.String
getInvalidAttributeNamePrefix()
boolean
isAllowInvalidAttributeNames()
void
setAdvancedxmlescape(boolean advancedxmlescape)
void
setAllowhtmlinsideattributes(boolean allowhtmlinsideattributes)
void
setAllowInvalidAttributeNames(boolean allowInvalidAttributeNames)
void
setAllowmultiwordattributes(boolean allowmultiwordattributes)
void
setBooleanatts(String booleanatts)
void
setDest(String dest)
void
setHyphenreplacement(String hyphenreplacement)
void
setIgnoreqe(boolean ignoreqe)
void
setIncharset(String incharset)
void
setInvalidAttributeNamePrefix(String invalidAttributeNamePrefix)
void
setNamespacesaware(boolean namespacesaware)
void
setNodebyxpath(String nodebyxpath)
void
setOmitcomments(boolean omitcomments)
void
setOmitdeprtags(boolean omitdeprtags)
void
setOmitdoctypedecl(boolean omitdoctypedecl)
void
setOmithtmlenvelope(boolean omithtmlenvelope)
void
setOmitunknowntags(boolean omitunknowntags)
void
setOmitxmldecl(boolean omitxmldecl)
void
setOutcharset(String outcharset)
void
setOutputtype(String outputtype)
void
setPrunetags(String prunetags)
void
setSpecialentities(boolean specialentities)
void
setSrc(String src)
void
setTaginfofile(String taginfofile)
void
setText(String text)
void
setTransform(String transform)
void
setTreatdeprtagsascontent(boolean treatdeprtagsascontent)
void
setTreatunknowntagsascontent(boolean treatunknowntagsascontent)
void
setUnicodechars(boolean unicodechars)
void
setUsecdata(boolean usecdata)
void
setUsecdatafor(String usecdatafor)
void
setUseemptyelementtags(boolean useemptyelementtags)
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setText
public void setText(String text)
-
setSrc
public void setSrc(String src)
-
setDest
public void setDest(String dest)
-
setIncharset
public void setIncharset(String incharset)
-
setOutcharset
public void setOutcharset(String outcharset)
-
setTaginfofile
public void setTaginfofile(String taginfofile)
-
setOutputtype
public void setOutputtype(String outputtype)
-
setAdvancedxmlescape
public void setAdvancedxmlescape(boolean advancedxmlescape)
-
setUsecdata
public void setUsecdata(boolean usecdata)
-
setUsecdatafor
public void setUsecdatafor(String usecdatafor)
-
setSpecialentities
public void setSpecialentities(boolean specialentities)
-
setUnicodechars
public void setUnicodechars(boolean unicodechars)
-
setOmitunknowntags
public void setOmitunknowntags(boolean omitunknowntags)
-
setTreatunknowntagsascontent
public void setTreatunknowntagsascontent(boolean treatunknowntagsascontent)
-
setOmitdeprtags
public void setOmitdeprtags(boolean omitdeprtags)
-
setTreatdeprtagsascontent
public void setTreatdeprtagsascontent(boolean treatdeprtagsascontent)
-
setOmitcomments
public void setOmitcomments(boolean omitcomments)
-
setOmitxmldecl
public void setOmitxmldecl(boolean omitxmldecl)
-
setOmitdoctypedecl
public void setOmitdoctypedecl(boolean omitdoctypedecl)
-
setOmithtmlenvelope
public void setOmithtmlenvelope(boolean omithtmlenvelope)
-
setUseemptyelementtags
public void setUseemptyelementtags(boolean useemptyelementtags)
-
setAllowmultiwordattributes
public void setAllowmultiwordattributes(boolean allowmultiwordattributes)
-
setAllowhtmlinsideattributes
public void setAllowhtmlinsideattributes(boolean allowhtmlinsideattributes)
-
setIgnoreqe
public void setIgnoreqe(boolean ignoreqe)
-
setNamespacesaware
public void setNamespacesaware(boolean namespacesaware)
-
setHyphenreplacement
public void setHyphenreplacement(String hyphenreplacement)
-
setPrunetags
public void setPrunetags(String prunetags)
-
setBooleanatts
public void setBooleanatts(String booleanatts)
-
setNodebyxpath
public void setNodebyxpath(String nodebyxpath)
-
setTransform
public void setTransform(String transform)
-
addText
public void addText(String text)
-
execute
public void execute() throws org.apache.tools.ant.BuildException
Implementation of Ant task execution.- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
isAllowInvalidAttributeNames
public boolean isAllowInvalidAttributeNames()
-
setAllowInvalidAttributeNames
public void setAllowInvalidAttributeNames(boolean allowInvalidAttributeNames)
-
getInvalidAttributeNamePrefix
public String getInvalidAttributeNamePrefix()
-
setInvalidAttributeNamePrefix
public void setInvalidAttributeNamePrefix(String invalidAttributeNamePrefix)
-
-