|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.xsd.test.XSDMainTest
Supports command line invocation to drive XML Schema model tests.
It handles both headless
invocation and standalone
invocation.
You can execute one of these test by running
xsd-test.bator
xsd-standalone-test.batfrom the directory:
plugins/org.eclipse.xsd.test/test/
run(java.lang.Object)
,
main(java.lang.String[])
Nested Class Summary | |
static class |
XSDMainTest.Runnable
|
Constructor Summary | |
XSDMainTest()
Creates an instance. |
Method Summary | |
void |
loadAndPrint(String xsdFile)
Load the XML Schema file and print information about it. |
static void |
main(String[] args)
Executes a stand-alone test. |
protected void |
printDirectives(String indent,
XSDSchema xsdSchema)
Prints directive tags for those directives that reference the given schema. |
protected void |
printSchemaStart(XSDSchema xsdSchema)
Prints a header tag for the given schema. |
Object |
run(Object object)
Executes a headless workbench test. |
void |
validate(String xsdFile)
Load the XML Schema file and print any diagnostics information about it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSDMainTest()
Method Detail |
public static void main(String[] args)
args
- an array of Strings from the command line.run(java.lang.Object)
public Object run(Object object)
XSDPrototypicalSchema
will be tested;
otherwise each argument is taken to be the URI of a schema which will be loaded and printed.
object
- an array of Strings from the command line, each representing the URI of a schema.
0
indicating success, or 1
indicating failure.main(java.lang.String[])
protected void printSchemaStart(XSDSchema xsdSchema)
xsdSchema
- a schema.protected void printDirectives(String indent, XSDSchema xsdSchema)
indent
- the indentation string to print at the start of each line.xsdSchema
- a schema.public void loadAndPrint(String xsdFile) throws Exception
xsdFile
- the URI of an XML Schema file.
Exception
public void validate(String xsdFile) throws Exception
xsdFile
- the URI of an XML Schema file.
Exception
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |