|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchemaValidatorInterface
Interface defining the API used by PERMIS for schema checking.
Method Summary | |
---|---|
javax.xml.validation.Schema |
getSchema()
Get the Schema used by the Validator to check instance documents. |
void |
setSchema(javax.xml.validation.Schema schema)
Set the Schema used by the Validator to check instance documents. |
void |
validate(org.w3c.dom.Node r)
Check if xml represented by a node is valid according to the current schema. |
void |
validate(java.io.Reader r)
Check if xml content represented by a Reader is valid according to the current schema. |
void |
validate(javax.xml.transform.Source source)
Check if XML represented by a Source is valid according to the current schema. |
void |
validate(java.lang.String s)
Check if a given xml string is valid according to the current schema. |
Method Detail |
---|
javax.xml.validation.Schema getSchema()
void setSchema(javax.xml.validation.Schema schema)
schema
- Schema to be used for validationvoid validate(java.lang.String s) throws org.xml.sax.SAXException, java.io.IOException
s
- String to be validated
org.xml.sax.SAXException
- If parsing of the schema instance fails
java.io.IOException
- Thrown on IO errorvoid validate(java.io.Reader r) throws org.xml.sax.SAXException, java.io.IOException
r
- Reader acessing the xml content
org.xml.sax.SAXException
- If parsing of the schema instance fails
java.io.IOException
- Thrown on IO errorvoid validate(org.w3c.dom.Node r) throws org.xml.sax.SAXException, java.io.IOException
r
- XML Node that is to be validated
org.xml.sax.SAXException
- If parsing of the schema instance fails
java.io.IOException
- Thrown on IO errorvoid validate(javax.xml.transform.Source source) throws org.xml.sax.SAXException, java.io.IOException
source
- Source to be validated
org.xml.sax.SAXException
- If parsing of the schema instance fails
java.io.IOException
- Thrown on IO error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |