|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
net.sourceforge.chaperon.ant.ParserTask
A ant task for parsing text files
Field Summary |
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
ParserTask()
Constructs the task |
Method Summary | |
void |
addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog xmlCatalog)
Add the catalog to our internal catalog |
org.apache.tools.ant.types.Mapper |
createMapper()
Creates a mapper. |
void |
execute()
Executes the task |
void |
init()
Initialize internal instance of XMLCatalog |
void |
setBasedir(java.io.File dir)
Set the base directory. |
void |
setCachedir(java.io.File dir)
|
void |
setDestdir(java.io.File dir)
Set the destination directory into which the result files should be copied to |
void |
setEncoding(java.lang.String encoding)
Sets the encoding for the input file |
void |
setFlatten(boolean flatten)
Reduces the deep of the produced hirachy by flatten nested element with same name. |
void |
setGrammar(java.io.File grammarFile)
Set the grammar, which should be used. |
void |
setIndent(boolean indent)
Set if the output document should be indented |
void |
setInputtype(java.lang.String inputtype)
If the input document is a XML or a text document. |
void |
setLexicon(java.io.File lexiconFile)
Set the lexicon, which should be used. |
void |
setMsglevel(java.lang.String msgLevel)
Sets the message level. |
void |
setNonXmlChars(java.lang.String nonXmlChars)
characters that should substitute non-xml characters |
void |
setParser(java.lang.String parserFactory)
Name of the parser factory. |
void |
setSrcdir(java.io.File dir)
Set the source directory |
void |
setTransformer(java.lang.String transformerFactory)
Name of the transformer factory. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParserTask()
Method Detail |
public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void setBasedir(java.io.File dir)
dir
- Base directorypublic void setSrcdir(java.io.File dir)
dir
- Source directorypublic void setDestdir(java.io.File dir)
dir
- Destination directorypublic void setCachedir(java.io.File dir)
dir
- Directory for chaching objectspublic org.apache.tools.ant.types.Mapper createMapper() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void setLexicon(java.io.File lexiconFile)
lexiconFile
- Lexicon file.public void setGrammar(java.io.File grammarFile)
grammarFile
- Grammar file.public void setMsglevel(java.lang.String msgLevel)
msgLevel
- Message level.public void setEncoding(java.lang.String encoding)
encoding
- Encoding of the documentpublic void setIndent(boolean indent)
indent
- If the output should be indentedpublic void setFlatten(boolean flatten)
flatten
- If the hirache should be reduced.public void setInputtype(java.lang.String inputtype)
inputtype
- Type of the input document.public void setParser(java.lang.String parserFactory)
parserFactory
- Name of the parser factory.public void setTransformer(java.lang.String transformerFactory)
transformerFactory
- Name of the transformer factory.public void setNonXmlChars(java.lang.String nonXmlChars)
nonXmlChars
- 32 charaters to replace charaters coded as U+0000 to U+0031. U+0009 (tab),
U+0010 (nl/lf) and U+0013 (cr) will not be substituted cause they are valid xml
characters. However the string has to be 32 characters longpublic void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog xmlCatalog)
xmlCatalog
- the XMLCatalog instance to use to look up DTDspublic void init() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |