|
||||||||
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
public class 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 |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, 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 |
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 |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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 |
Methods inherited from class java.lang.Object |
---|
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
execute
in class org.apache.tools.ant.Task
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 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
init
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |