|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.xml.schema.XmlSchema
Methods to convert a Java class to an XML/Schema document.
Method Summary | |
static void |
classToXmlSchema(java.lang.Class cl,
java.io.Writer out)
Convert a Java class into its corresponding XML/Schema definition. |
static void |
main(java.lang.String[] args)
Convert a Java class into its corresponding XML/Schema definition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.ClassNotFoundException
Usage
java tribble.xml.schema.XmlSchema pkg.class
Loads the class named pkg.class (which should be located somewhere in the CLASSPATH), and writes its structure as an XML/Schema document to the standard output.
args
- Command line arguments.
java.io.IOException
- Thrown if an I/O (write) error occurs.
java.lang.ClassNotFoundException
- Thrown if an I/O (write) error occurs.public static void classToXmlSchema(java.lang.Class cl, java.io.Writer out) throws java.io.IOException
cl
- Java class to convert.out
- Output stream to write the XML/Schema definition to.
java.io.IOException
- Thrown if an I/O (write) error occurs.
java.lang.IllegalArgumentException
- (unchecked)
Thrown if cl cannot be mapped as XML.
java.lang.NullPointerException
- (unchecked)
Thrown if cl is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |