|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.reports.BucketReportValidator
Validates ADL bucket reports.
$Log: BucketReportValidator.java,v $
Revision 1.3 2007/02/19 17:46:16 gjanee
Minor change to use new class StandardBuckets.
Revision 1.2 2004/02/22 04:22:10 gjanee
Minor changes to accommodate revision 1.4 of
ADL-bucket-report.dtd.
Revision 1.1 2003/04/05 14:51:56 gjanee
Initial revision
| Constructor Summary | |
BucketReportValidator()
Creates a BucketReportValidator. |
|
| Method Summary | |
void |
characters(char[] string,
int start,
int length)
For use by ValidatingXmlParser only. |
void |
endElement(int elementCode)
For use by ValidatingXmlParser only. |
static void |
main(java.lang.String[] args)
Test driver. |
void |
startElement(int elementCode,
java.lang.String[] attributes)
For use by ValidatingXmlParser only. |
void |
validate(java.io.Reader reader)
Validates an ADL bucket report. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BucketReportValidator()
BucketReportValidator. The validator
may be invoked multiple times, but is not multithread-safe.
| Method Detail |
public void validate(java.io.Reader reader)
throws XmlException
reader - The primary source of the bucket report.
XmlException - If a validation error occurs.
public void startElement(int elementCode,
java.lang.String[] attributes)
throws XmlException
ValidatingXmlParser only.
startElement in interface XmlHandlerelementCode - The element's code.attributes - Element attribute values, indexed by attribute code. All of
the element's declared attributes are represented in the array;
attributes for which a value is specified in the document or
for which there is a DTD-specified default have
non-null values. The handler should reference the
array for the duration of the call only, as it is reused by the
parser. Also, the array may be longer than necessary.
XmlException - If any error occurs.
public void endElement(int elementCode)
throws XmlException
ValidatingXmlParser only.
endElement in interface XmlHandlerelementCode - The element's code.
XmlException - If any error occurs.
public void characters(char[] string,
int start,
int length)
ValidatingXmlParser only.
characters in interface XmlHandlerstring - The textual content.start - The index in string at which the textual content
starts.length - The length of the content.
public static void main(java.lang.String[] args)
throws java.io.IOException,
XmlException
java.io.IOException
XmlException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||