|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.taplint.XsdStage
public abstract class XsdStage
Validation stage for validating a document against a given XML schema.
Nested Class Summary | |
---|---|
static class |
XsdStage.Result
Enumerates possible results of the parse. |
Constructor Summary | |
---|---|
protected |
XsdStage(String topElNamespaceUri,
String topElName)
Constructor. |
Method Summary | |
---|---|
static XsdStage |
createXsdStage(String topElName,
String topElNamespace,
String docUrlSuffix,
boolean mandatory,
String resourceDescription)
Returns a new XsdStage suitable for one of the standard TAP XML endpoints. |
abstract String |
getDocumentUrl(URL serviceUrl)
Returns the URL of the document to validate, given the service URL for the TAP service. |
XsdStage.Result |
getResult()
Returns a token giving the result status last time this stage was run. |
void |
run(Reporter reporter,
URL serviceUrl)
Performs the validation checks for this stage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface uk.ac.starlink.ttools.taplint.Stage |
---|
getDescription |
Constructor Detail |
---|
protected XsdStage(String topElNamespaceUri, String topElName)
topElNamespaceUri
- namespace of required document root elementtopElName
- local name of required document root elementMethod Detail |
---|
public abstract String getDocumentUrl(URL serviceUrl)
serviceUrl
- TAP service URL
public void run(Reporter reporter, URL serviceUrl)
Stage
run
in interface Stage
reporter
- destination for validation messagesserviceUrl
- TAP service URLpublic XsdStage.Result getResult()
public static XsdStage createXsdStage(String topElName, String topElNamespace, String docUrlSuffix, boolean mandatory, String resourceDescription)
topElName
- required local name for top-level document elementtopElNamespace
- expected XML namespace for top-level document
element (not currently required, which I think
is correct, but I could be wrong)docUrlSuffix
- suffix (include leading /) of TAP service URL
giving resource endpointmandatory
- true iff resource is REQUIRED by standardresourceDescription
- short description of what resource contains
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |