|
org.netbeans.modules.xml.xam/1 1.18.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.xml.xam.spi.XsdBasedValidator
public abstract class XsdBasedValidator
Base class for Schema validator. Each domain specific schema validator can extend this.
| Nested Class Summary | |
|---|---|
protected class |
XsdBasedValidator.Handler
Handler to receive parse events. |
| Nested classes/interfaces inherited from interface org.netbeans.modules.xml.xam.spi.Validator |
|---|
Validator.ResultItem, Validator.ResultType |
| Constructor Summary | |
|---|---|
XsdBasedValidator()
Creates a new instance of XsdBasedValidation |
|
| Method Summary | |
|---|---|
protected Schema |
getCompiledSchema(InputStream[] schemas,
LSResourceResolver lsResourceResolver)
Subclasses can use this to get a compiled schema object. |
protected Schema |
getCompiledSchema(Source[] schemas,
LSResourceResolver lsResourceResolver,
ErrorHandler errorHandler)
|
protected abstract Schema |
getSchema(Model model)
Get Schemas that the model has to be validated against. |
protected Source |
getSource(Model model,
XsdBasedValidator.Handler handler)
|
DocumentModel |
resolveResource(String systemId,
Model currentModel)
|
protected void |
validate(Model model,
Schema schema,
XsdBasedValidator.Handler handler)
Validates the model against the schema. |
ValidationResult |
validate(Model model,
Validation validation,
Validation.ValidationType validationType)
Entry point to validate a model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.netbeans.modules.xml.xam.spi.Validator |
|---|
getName |
| Constructor Detail |
|---|
public XsdBasedValidator()
| Method Detail |
|---|
protected abstract Schema getSchema(Model model)
model - Get Schemas that the model has to be validated against.
public ValidationResult validate(Model model,
Validation validation,
Validation.ValidationType validationType)
validate in interface Validatormodel - Model to validate.validation - Reference to Validation object.validationType - Type of validation. Complete(slow) or partial(fast).
protected Source getSource(Model model,
XsdBasedValidator.Handler handler)
model - handler -
protected void validate(Model model,
Schema schema,
XsdBasedValidator.Handler handler)
model - Model to be validated.schema - Compiled schema against which the model is validated.handler - Handler to receive validation messages.
protected Schema getCompiledSchema(InputStream[] schemas,
LSResourceResolver lsResourceResolver)
schemas - Input stream of schemas.lsResourceResolver - resolver can be supplied optionally. Otherwise pass null.
protected Schema getCompiledSchema(Source[] schemas,
LSResourceResolver lsResourceResolver,
ErrorHandler errorHandler)
public DocumentModel resolveResource(String systemId,
Model currentModel)
|
org.netbeans.modules.xml.xam/1 1.18.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||