|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.aptana.sax.ValidatingReader
public class ValidatingReader
| Field Summary | |
|---|---|
protected Schema |
_schema
The schema associated with this reader |
| Constructor Summary | |
|---|---|
protected |
ValidatingReader()
Create a new instance of ValidatingReader |
|
ValidatingReader(Schema schema)
Create a new instance of ValidatingReader |
| Method Summary | |
|---|---|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName)
Finish processing the specified element |
void |
read(java.io.InputStream in)
Load an XML stream and validate it against this reader's schema |
void |
read(java.lang.String filename)
Load a xml file and validate it against this reader's schema |
void |
startDocument()
startDocument handler |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
Handle the start of a new element |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Schema _schema
| Constructor Detail |
|---|
protected ValidatingReader()
public ValidatingReader(Schema schema)
schema - The schema to associate with this reader.| Method Detail |
|---|
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - localName - qualifiedName -
org.xml.sax.SAXException
public void read(java.lang.String filename)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
filename - The name of the xml file to load and validate
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
public void read(java.io.InputStream in)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
in - The input stream that contains XML
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - The element's namespace URIlocalName - The element's local namequalifiedName - The element's qualified nameattributes - The element's attributes
org.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||