|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
fedora.client.batch.BatchModifyValidator
public class BatchModifyValidator
Title: BatchModifyValidator.java
Description: A class for parsing the xml modify directives in the Batch Modify input file. The parsing is configured to parse directives in the file sequentially. Logs are written for each successful and failed directive that is processed. Recoverable(non-fatal) errors are written to the log file and processing continues. Catastrophic errors will cause parsing to halt and set the count of failed directives to -1 indicating that parsing was halted prior to the end of the file. In this case the logs will contain all directives processed up to the point of failure.
| Constructor Summary | |
|---|---|
BatchModifyValidator(java.io.InputStream in,
java.io.PrintStream out)
Constructor allows this class to initiate the parsing. |
|
| Method Summary | |
|---|---|
int |
getErrorCount()
|
boolean |
isValid()
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchModifyValidator(java.io.InputStream in,
java.io.PrintStream out)
throws java.lang.Exception
Constructor allows this class to initiate the parsing.
in - - An input stream containing the xml to be parsed.out - - A print stream used for writing log info.
java.lang.Exception - - If an error occurs in configuring
the SAX parser.| Method Detail |
|---|
public boolean isValid()
public int getErrorCount()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||