Package org.htmlcleaner
Class HtmlCleanerForAnt
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.htmlcleaner.HtmlCleanerForAnt
-
- All Implemented Interfaces:
java.lang.Cloneable
public class HtmlCleanerForAnt extends org.apache.tools.ant.Task
Support for ANT.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
advancedxmlescape
private boolean
allowhtmlinsideattributes
private boolean
allowInvalidAttributeNames
private boolean
allowmultiwordattributes
private java.lang.String
booleanatts
private java.lang.String
dest
private java.lang.String
hyphenreplacement
private boolean
ignoreqe
private java.lang.String
incharset
private java.lang.String
invalidAttributeNamePrefix
private boolean
namespacesaware
private java.lang.String
nodebyxpath
private boolean
omitcomments
private boolean
omitdeprtags
private boolean
omitdoctypedecl
private boolean
omithtmlenvelope
private boolean
omitunknowntags
private boolean
omitxmldecl
private java.lang.String
outcharset
private java.lang.String
outputtype
private java.lang.String
prunetags
private boolean
specialentities
private java.lang.String
src
private java.lang.String
taginfofile
private java.lang.String
text
private java.lang.String
transform
private boolean
treatdeprtagsascontent
private boolean
treatunknowntagsascontent
private boolean
unicodechars
private boolean
usecdata
private java.lang.String
usecdatafor
private boolean
useemptyelementtags
-
Constructor Summary
Constructors Constructor Description HtmlCleanerForAnt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addText(java.lang.String text)
void
execute()
Implementation of Ant task execution.java.lang.String
getInvalidAttributeNamePrefix()
boolean
isAllowInvalidAttributeNames()
void
setAdvancedxmlescape(boolean advancedxmlescape)
void
setAllowhtmlinsideattributes(boolean allowhtmlinsideattributes)
void
setAllowInvalidAttributeNames(boolean allowInvalidAttributeNames)
void
setAllowmultiwordattributes(boolean allowmultiwordattributes)
void
setBooleanatts(java.lang.String booleanatts)
void
setDest(java.lang.String dest)
void
setHyphenreplacement(java.lang.String hyphenreplacement)
void
setIgnoreqe(boolean ignoreqe)
void
setIncharset(java.lang.String incharset)
void
setInvalidAttributeNamePrefix(java.lang.String invalidAttributeNamePrefix)
void
setNamespacesaware(boolean namespacesaware)
void
setNodebyxpath(java.lang.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(java.lang.String outcharset)
void
setOutputtype(java.lang.String outputtype)
void
setPrunetags(java.lang.String prunetags)
void
setSpecialentities(boolean specialentities)
void
setSrc(java.lang.String src)
void
setTaginfofile(java.lang.String taginfofile)
void
setText(java.lang.String text)
void
setTransform(java.lang.String transform)
void
setTreatdeprtagsascontent(boolean treatdeprtagsascontent)
void
setTreatunknowntagsascontent(boolean treatunknowntagsascontent)
void
setUnicodechars(boolean unicodechars)
void
setUsecdata(boolean usecdata)
void
setUsecdatafor(java.lang.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
-
-
-
-
Field Detail
-
text
private java.lang.String text
-
src
private java.lang.String src
-
dest
private java.lang.String dest
-
incharset
private java.lang.String incharset
-
outcharset
private java.lang.String outcharset
-
taginfofile
private java.lang.String taginfofile
-
outputtype
private java.lang.String outputtype
-
advancedxmlescape
private boolean advancedxmlescape
-
usecdata
private boolean usecdata
-
usecdatafor
private java.lang.String usecdatafor
-
specialentities
private boolean specialentities
-
unicodechars
private boolean unicodechars
-
omitunknowntags
private boolean omitunknowntags
-
treatunknowntagsascontent
private boolean treatunknowntagsascontent
-
omitdeprtags
private boolean omitdeprtags
-
treatdeprtagsascontent
private boolean treatdeprtagsascontent
-
omitcomments
private boolean omitcomments
-
omitxmldecl
private boolean omitxmldecl
-
omitdoctypedecl
private boolean omitdoctypedecl
-
omithtmlenvelope
private boolean omithtmlenvelope
-
useemptyelementtags
private boolean useemptyelementtags
-
allowmultiwordattributes
private boolean allowmultiwordattributes
-
allowhtmlinsideattributes
private boolean allowhtmlinsideattributes
-
ignoreqe
private boolean ignoreqe
-
namespacesaware
private boolean namespacesaware
-
hyphenreplacement
private java.lang.String hyphenreplacement
-
prunetags
private java.lang.String prunetags
-
booleanatts
private java.lang.String booleanatts
-
nodebyxpath
private java.lang.String nodebyxpath
-
transform
private java.lang.String transform
-
allowInvalidAttributeNames
private boolean allowInvalidAttributeNames
-
invalidAttributeNamePrefix
private java.lang.String invalidAttributeNamePrefix
-
-
Method Detail
-
setText
public void setText(java.lang.String text)
-
setSrc
public void setSrc(java.lang.String src)
-
setDest
public void setDest(java.lang.String dest)
-
setIncharset
public void setIncharset(java.lang.String incharset)
-
setOutcharset
public void setOutcharset(java.lang.String outcharset)
-
setTaginfofile
public void setTaginfofile(java.lang.String taginfofile)
-
setOutputtype
public void setOutputtype(java.lang.String outputtype)
-
setAdvancedxmlescape
public void setAdvancedxmlescape(boolean advancedxmlescape)
-
setUsecdata
public void setUsecdata(boolean usecdata)
-
setUsecdatafor
public void setUsecdatafor(java.lang.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(java.lang.String hyphenreplacement)
-
setPrunetags
public void setPrunetags(java.lang.String prunetags)
-
setBooleanatts
public void setBooleanatts(java.lang.String booleanatts)
-
setNodebyxpath
public void setNodebyxpath(java.lang.String nodebyxpath)
-
setTransform
public void setTransform(java.lang.String transform)
-
addText
public void addText(java.lang.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 java.lang.String getInvalidAttributeNamePrefix()
-
setInvalidAttributeNamePrefix
public void setInvalidAttributeNamePrefix(java.lang.String invalidAttributeNamePrefix)
-
-