|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.bellows.schema.SchemaValidator
General purpose XML validator. Compares the xml document against the provided schema and if it finds a schema violation, it throws an exception with a full description of the problem.
Constructor Summary | |
SchemaValidator()
|
Method Summary | |
void |
validate(BellowsSchema schema,
Datum xml)
Checks the XML tree against the provided schema and throws an exception if it does not follow the schema. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SchemaValidator()
Method Detail |
public void validate(BellowsSchema schema, Datum xml) throws BellowsSchemaException
schema
- generic Bellows schemaxml
- Bellows XML tree
BellowsSchemaException
- if XML does not follow the schema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |