| java.lang.Object com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator
Method Summary | |
public void | add(ClassInfo<T, C> clazz) Adds a new class to the list of classes to be written.
A
ClassInfo may have two namespaces --- one for the element name
and the other for the type name. | public void | add(ElementInfo<T, C> elem) Adds a new element to the list of elements to be written. | public void | add(EnumLeafInfo<T, C> envm) | public void | add(ArrayInfo<T, C> a) | public void | add(QName tagName, boolean isNillable, NonElement<T, C> type) Adds an additional element declaration. | protected static String | relativize(String uri, String baseUri) TODO: JAX-WS dependency on this method - consider moving this method into com.sun.tools.jxc.util.Util
Relativizes a URI by using another URI (base URI.)
For example,
relative("http://www.sun.com/abc/def","http://www.sun.com/pqr/stu") => "../abc/def"
This method only works on hierarchical URI's, not opaque URI's (refer to the
java.net.URI
javadoc for complete definitions of these terms. | public void | write(SchemaOutputResolver resolver, ErrorListener errorListener) Write out the schema documents. | public void | writeEpisodeFile(XmlSerializer out) Writes out the episode file. |
add | public void add(ClassInfo<T, C> clazz)(Code) | | Adds a new class to the list of classes to be written.
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
Namespace s.
|
add | public void add(ElementInfo<T, C> elem)(Code) | | Adds a new element to the list of elements to be written.
|
add | public void add(QName tagName, boolean isNillable, NonElement<T, C> type)(Code) | | Adds an additional element declaration.
Parameters: tagName - The name of the element declaration to be added. Parameters: type - The type this element refers to.Can be null, in which case the element refers to an empty anonymous complex type. |
relativize | protected static String relativize(String uri, String baseUri)(Code) | | TODO: JAX-WS dependency on this method - consider moving this method into com.sun.tools.jxc.util.Util
Relativizes a URI by using another URI (base URI.)
For example,
relative("http://www.sun.com/abc/def","http://www.sun.com/pqr/stu") => "../abc/def"
This method only works on hierarchical URI's, not opaque URI's (refer to the
java.net.URI
javadoc for complete definitions of these terms.
This method will not normalize the relative URI.
the relative URI or the original URI if a relative one could not be computed |
writeEpisodeFile | public void writeEpisodeFile(XmlSerializer out)(Code) | | Writes out the episode file.
|
|
|