public class Validation extends Object
Constructor and Description |
---|
Validation(Schema schema) |
Validation(Schema schema,
Document document) |
Validation(Schema schema,
String srcXml) |
Validation(String srcXsd) |
Modifier and Type | Method and Description |
---|---|
String |
getError() |
void |
setDocument(Document document) |
void |
setDocument(String srcXml) |
void |
setSchema(Schema schema) |
void |
setSchema(String srcXsd) |
boolean |
succeed() |
public Validation(Schema schema)
schema
- the schemapublic Validation(String srcXsd)
srcXsd
- the srcXsdpublic Validation(Schema schema, Document document)
schema
- the schemadocument
- the documentpublic final void setSchema(Schema schema)
schema
- the schema to setpublic final void setSchema(String srcXsd)
srcXsd
- the srcXsd to setpublic final void setDocument(Document document)
document
- the document to setpublic final void setDocument(String srcXml)
srcXml
- the srcXml to setpublic final String getError()
public final boolean succeed()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.