|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xanot.Xanot
public class Xanot
This is the class that, in user point of view, will do all the job.
| Constructor Summary | |
|---|---|
Xanot()
Creates a new Xanot object. |
|
| Method Summary | |
|---|---|
java.util.Collection<org.xml.sax.SAXParseException> |
getErrors()
Get collection of error exceptions |
java.util.Collection<org.xml.sax.SAXParseException> |
getFatals()
Get collection of fatal error exceptions. |
java.lang.Class |
getRoot()
Get the root class |
java.util.Collection<org.xml.sax.SAXParseException> |
getWarnings()
Get collection of warning exceptions |
boolean |
isStopOnError()
Check wether xanot will stop parsing xml when encounters an error. |
boolean |
isStopOnFatal()
Check wether xanot will stop parsing xml when encounters a fatal error. |
boolean |
isStopOnWarning()
Check wether xanot will stop parsing xml when encounters a warning. |
java.lang.Object |
parse(java.io.File inputFile)
Start to parse an xml from a source file. |
java.lang.Object |
parse(java.io.InputStream inputStream)
The method to call when starting to parse an xml object |
java.lang.Object |
parse(java.lang.String inputFilePath)
Start to parse an xml from a source file on a specified file path. |
void |
setErrors(java.util.Collection<org.xml.sax.SAXParseException> errors)
Set collection of error exceptions |
void |
setFatals(java.util.Collection<org.xml.sax.SAXParseException> fatals)
Set collection of fatal errors exceptions. |
void |
setRoot(java.lang.Class root)
Set the root object. |
void |
setStopOnError(boolean stopOnError)
Set xanot to stop or continue parasing when encounters an error. |
void |
setStopOnFatal(boolean stopOnFatal)
Set xanot to stop or continue parasing when encounters a fatal error. |
void |
setStopOnWarning(boolean stopOnWarning)
Set xanot to stop or continue parasing when encounters a warning. |
void |
setWarnings(java.util.Collection<org.xml.sax.SAXParseException> warnings)
Set collection of warning exceptions. |
java.lang.String |
toString()
Get this class name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Xanot()
throws XanotException
XanotException - DOCUMENT ME!| Method Detail |
|---|
public java.lang.Class getRoot()
public void setRoot(java.lang.Class root)
throws XanotException
root - The root to set.
XanotExceptionpublic java.lang.String toString()
Xanot.class.getName()
toString in class java.lang.Object
public java.lang.Object parse(java.io.InputStream inputStream)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
inputStream - Input stream as source of the xml data.
org.xml.sax.SAXException - Thrown if there's an error when parsing.
java.io.IOException - Thrown if there's some problem when accesing the stream.
javax.xml.parsers.ParserConfigurationException - Thrown if the sax parser is not properly configured.
public java.lang.Object parse(java.io.File inputFile)
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
inputFile - Input file
org.xml.sax.SAXException - Thrown if there's an error when parsing.
java.io.IOException - Thrown if there's some problem when accessing file.
javax.xml.parsers.ParserConfigurationException - Thrown if the sax parser is not properly configured.
public java.lang.Object parse(java.lang.String inputFilePath)
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
inputFilePath - Path to the xml file
org.xml.sax.SAXException - Thrown if there's an error when parsing.
java.io.IOException - Thrown if there's some problem when accessing file.
javax.xml.parsers.ParserConfigurationException - Thrown if the sax parser is not properly configured.public java.util.Collection<org.xml.sax.SAXParseException> getWarnings()
public void setWarnings(java.util.Collection<org.xml.sax.SAXParseException> warnings)
warnings - Collection of warning exceptions.public java.util.Collection<org.xml.sax.SAXParseException> getErrors()
public void setErrors(java.util.Collection<org.xml.sax.SAXParseException> errors)
errors - Collection of error exceptions.public java.util.Collection<org.xml.sax.SAXParseException> getFatals()
public void setFatals(java.util.Collection<org.xml.sax.SAXParseException> fatals)
fatals - Collection of fatal error exception.public boolean isStopOnWarning()
public void setStopOnWarning(boolean stopOnWarning)
stopOnWarning - True to stop xanot when encounter a warning. False if
otherwise.public boolean isStopOnError()
public void setStopOnError(boolean stopOnError)
stopOnError - True to stop xanot when encounter an error. False if
otherwise.public boolean isStopOnFatal()
public void setStopOnFatal(boolean stopOnFatal)
stopOnFatal - True to stop xanot when encounter a fatal error. False if
otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||