|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.v2.schemagen.XmlSchemaGenerator<T,C,F,M>
public final class XmlSchemaGenerator<T,C,F,M>
Generates a set of W3C XML Schema documents from a set of Java classes.
A client must invoke methods in the following order:
XmlSchemaGenerator
add(com.sun.xml.bind.v2.model.core.ClassInfo) methods, multiple times if necessary.
write(javax.xml.bind.SchemaOutputResolver, com.sun.xml.bind.api.ErrorListener)
XmlSchemaGenerator.
| Constructor Summary | |
|---|---|
XmlSchemaGenerator(Navigator<T,C,F,M> navigator,
TypeInfoSet<T,C,F,M> types)
|
|
| Method Summary | |
|---|---|
void |
add(ArrayInfo<T,C> a)
|
void |
add(ClassInfo<T,C> clazz)
Adds a new class to the list of classes to be written. |
void |
add(ElementInfo<T,C> elem)
Adds a new element to the list of elements to be written. |
void |
add(EnumLeafInfo<T,C> envm)
|
void |
add(javax.xml.namespace.QName tagName,
boolean isNillable,
NonElement<T,C> type)
Adds an additional element declaration. |
java.lang.String |
toString()
Debug information of what's in this XmlSchemaGenerator. |
void |
write(javax.xml.bind.SchemaOutputResolver resolver,
ErrorListener errorListener)
Write out the schema documents. |
void |
writeEpisodeFile(com.sun.xml.txw2.output.XmlSerializer out)
Writes out the episode file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlSchemaGenerator(Navigator<T,C,F,M> navigator,
TypeInfoSet<T,C,F,M> types)
| Method Detail |
|---|
public void add(ClassInfo<T,C> clazz)
A ClassInfo may have two namespaces --- one for the element name
and the other for the type name. If they are different, we put the same
ClassInfo to two Namespaces.
public void add(ElementInfo<T,C> elem)
public void add(EnumLeafInfo<T,C> envm)
public void add(ArrayInfo<T,C> a)
public void add(javax.xml.namespace.QName tagName,
boolean isNillable,
NonElement<T,C> type)
tagName - The name of the element declaration to be added.type - The type this element refers to.
Can be null, in which case the element refers to an empty anonymous complex type.public void writeEpisodeFile(com.sun.xml.txw2.output.XmlSerializer out)
public void write(javax.xml.bind.SchemaOutputResolver resolver,
ErrorListener errorListener)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
XmlSchemaGenerator.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||