|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InputParser
The interface, all input parsers need to implement.
Method Summary | |
---|---|
java.lang.String |
getFileSuffix()
Return the file suffix this parser reacts upon |
java.lang.String |
getMode()
Return the mode string |
java.lang.String |
getSpecificHelp()
Return a String that gives help for this specific parser. |
Container |
parseInput()
Parse the input and build a tree of Containers. |
void |
setDebug()
Tells the parer to set the debug mode. |
void |
setInputFile(java.io.File inputFile)
Pass in the input file to parse |
void |
setParserOptions(java.lang.String[] options)
Pass in options that are parser specific. |
void |
setWithAttributes(boolean value)
Tells the parser that parsing attributes of elements is wanted. |
void |
setWithElementComments(boolean value)
Tells the parser that parsing comments for elements (and possibly attributes) is desired. |
Method Detail |
---|
Container parseInput() throws java.lang.Exception
java.lang.Exception
- if anything goes wrong.Container
void setInputFile(java.io.File inputFile)
inputFile
- a File objectvoid setParserOptions(java.lang.String[] options)
options
- array of individual option parts as passed on the command line.java.lang.String getSpecificHelp()
java.lang.String getMode()
java.lang.String getFileSuffix()
void setDebug()
void setWithAttributes(boolean value)
DtdParser
is able to do this, while the PropertiesParser
is not.
value
- The value to set this to.void setWithElementComments(boolean value)
value
- The value to set this to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |