|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xsd.example.XSDMainExample
public class XSDMainExample
Supports command line invocation to drive XML Schema model examples.
It handles both headless
invocation and standalone
invocation.
You can execute one of these example by running
xsd-example.bator
xsd-standalone-example.batfrom the directory:
plugins/org.eclipse.xsd.example/data/
run(java.lang.Object)
,
main(java.lang.String[])
Nested Class Summary | |
---|---|
static class |
XSDMainExample.Runnable
|
Constructor Summary | |
---|---|
XSDMainExample()
Creates an instance. |
Method Summary | |
---|---|
void |
loadAndPrint(java.lang.String xsdFile)
Load the XML Schema file and print information about it. |
static void |
main(java.lang.String[] args)
Executes a stand-alone example. |
protected void |
printDirectives(java.lang.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. |
java.lang.Object |
run(java.lang.Object object)
Executes a headless workbench example. |
void |
validate(java.lang.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 XSDMainExample()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- an array of Strings from the command line.run(java.lang.Object)
public java.lang.Object run(java.lang.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(java.lang.String indent, XSDSchema xsdSchema)
indent
- the indentation string to print at the start of each line.xsdSchema
- a schema.public void loadAndPrint(java.lang.String xsdFile) throws java.lang.Exception
xsdFile
- the URI of an XML Schema file.
java.lang.Exception
public void validate(java.lang.String xsdFile) throws java.lang.Exception
xsdFile
- the URI of an XML Schema file.
java.lang.Exception
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |