|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.ox.tool.SchematronCommand
public class SchematronCommand
Runs schematron on the specified document.
Nested Class Summary | |
---|---|
class |
SchematronCommand.SchemaResult
|
Field Summary | |
---|---|
static String |
DEFAULT_SCHEMA
The name of the default schematron to use for this. |
Constructor Summary | |
---|---|
SchematronCommand(Model model)
Create a new command. |
Method Summary | |
---|---|
static org.weborganic.schematron.Validator |
getBuiltinValidator()
Returns the built-in validator |
Model |
getModel()
Return the model this command uses. |
org.weborganic.schematron.Validator |
getValidator(String schematron)
Returns the Schematron validator used. |
SchematronCommand.SchemaResult |
process(PackageData data)
Processes the specified package data according to the model defined for this command. |
void |
setDocumentPath(String path)
|
void |
setSchema(String schema)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_SCHEMA
Constructor Detail |
---|
public SchematronCommand(Model model)
model
- The model to useMethod Detail |
---|
public void setDocumentPath(String path)
path
- The path to the document to validate.public void setSchema(String schema)
schema
- The path to the schema to use within the model.public Model getModel()
Command
getModel
in interface Command<SchematronCommand.SchemaResult>
public SchematronCommand.SchemaResult process(PackageData data)
Command
This method should intercept errors occurring during processing and include them in the results.
process
in interface Command<SchematronCommand.SchemaResult>
public org.weborganic.schematron.Validator getValidator(String schematron) throws org.weborganic.schematron.SchematronException
This method will return the schematron in the model if one is found; otherwise it will revert to using the default built-in schematron.
org.weborganic.schematron.SchematronException
- If the schematron could not be parsed as a validator.public static org.weborganic.schematron.Validator getBuiltinValidator() throws org.weborganic.schematron.SchematronException
org.weborganic.schematron.SchematronException
- If the schematron could not be parsed as a validator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |