edu.isi.pegasus.planner.client
public class DAXValidator extends DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_errors
Counts the number of errors.
|
protected int |
m_fatals
Counts the number of fatal errors.
|
private Locator |
m_location
Keep the location within the document.
|
private XMLReader |
m_reader
Holds the instance of a
XMLReader class. |
private String |
m_schemafile
what is the name of the schema file in the filename hint?
|
protected boolean |
m_verbose
How verbose should we be?
|
protected int |
m_warnings
Counts the number of warnings.
|
static String |
SCHEMA_NAMESPACE
URI namespace for DAX schema.
|
protected static String |
vendorParserClass
Default parser is the Xerces parser.
|
| Constructor and Description |
|---|
DAXValidator(boolean verbose)
default c'tor
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String nsURI,
String localName,
String qName) |
void |
error(SAXParseException ex) |
void |
fatalError(SAXParseException ex) |
private String |
full_where() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
static void |
main(String[] args) |
void |
parse(String filename) |
private boolean |
prop(String uri,
Object value)
Sets a SAX property while capturing failed features right here.
|
private boolean |
set(String uri,
boolean flag)
Sets a feature while capturing failed features right here.
|
void |
setDocumentLocator(Locator locator) |
void |
startDocument() |
void |
startElement(String nsURI,
String localName,
String qName,
Attributes attrs) |
boolean |
statistics()
Show how many warnings, errors and fatals were shown.
|
void |
warning(SAXParseException ex) |
private String |
where() |
endPrefixMapping, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDeclprotected static final String vendorParserClass
public static final String SCHEMA_NAMESPACE
private String m_schemafile
private Locator m_location
protected boolean m_verbose
protected int m_warnings
protected int m_errors
protected int m_fatals
private boolean set(String uri, boolean flag)
uri - is the feature's URI to modifyflag - is the new value to set.private boolean prop(String uri, Object value)
uri - is the property's URI to modifyvalue - is the new value to set.public void warning(SAXParseException ex) throws SAXException
warning in interface ErrorHandlerwarning in class DefaultHandlerSAXExceptionpublic void error(SAXParseException ex) throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXExceptionpublic void fatalError(SAXParseException ex) throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerprivate String full_where()
private String where()
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic void endDocument()
endDocument in interface ContentHandlerendDocument in class DefaultHandlerpublic void startElement(String nsURI, String localName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String nsURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class DefaultHandlerSAXExceptionpublic boolean statistics()