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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private boolean
private boolean
private String
private String
private String
private boolean
private String
private String
private boolean
private String
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private String
private String
private String
private boolean
private String
private String
private String
private String
private boolean
private boolean
private boolean
private boolean
private String
private boolean
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
execute()
Implementation of Ant task execution.boolean
void
setAdvancedxmlescape
(boolean advancedxmlescape) void
setAllowhtmlinsideattributes
(boolean allowhtmlinsideattributes) void
setAllowInvalidAttributeNames
(boolean allowInvalidAttributeNames) void
setAllowmultiwordattributes
(boolean allowmultiwordattributes) void
setBooleanatts
(String booleanatts) void
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
void
setTaginfofile
(String taginfofile) void
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
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
text
-
src
-
dest
-
incharset
-
outcharset
-
taginfofile
-
outputtype
-
advancedxmlescape
private boolean advancedxmlescape -
usecdata
private boolean usecdata -
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
-
prunetags
-
booleanatts
-
nodebyxpath
-
transform
-
allowInvalidAttributeNames
private boolean allowInvalidAttributeNames -
invalidAttributeNamePrefix
-
-
Constructor Details
-
HtmlCleanerForAnt
public HtmlCleanerForAnt()
-
-
Method Details
-
setText
-
setSrc
-
setDest
-
setIncharset
-
setOutcharset
-
setTaginfofile
-
setOutputtype
-
setAdvancedxmlescape
public void setAdvancedxmlescape(boolean advancedxmlescape) -
setUsecdata
public void setUsecdata(boolean usecdata) -
setUsecdatafor
-
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
-
setPrunetags
-
setBooleanatts
-
setNodebyxpath
-
setTransform
-
addText
-
execute
public void execute() throws org.apache.tools.ant.BuildExceptionImplementation 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
-
setInvalidAttributeNamePrefix
-