|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface J2SJAXBModel
JAXBModel
that exposes additional information available
only for the java->schema direction.
Method Summary | |
---|---|
void |
generateSchema(javax.xml.bind.SchemaOutputResolver outputResolver,
ErrorListener errorListener)
Generates the schema documents from the model. |
javax.xml.namespace.QName |
getXmlTypeName(Reference javaType)
Returns the name of the XML Type bound to the specified Java type. |
Methods inherited from interface com.sun.tools.xjc.api.JAXBModel |
---|
getClassList |
Method Detail |
---|
javax.xml.namespace.QName getXmlTypeName(Reference javaType)
javaType
- must not be null. This must be one of the Reference
s specified
in the JavaCompiler.bind(java.util.Collection, java.util.Map, java.lang.String, com.sun.mirror.apt.AnnotationProcessorEnvironment)
method.
JavaCompiler.bind(java.util.Collection, java.util.Map, java.lang.String, com.sun.mirror.apt.AnnotationProcessorEnvironment)
.
java.lang.IllegalArgumentException
- if the parameter is nullvoid generateSchema(javax.xml.bind.SchemaOutputResolver outputResolver, ErrorListener errorListener) throws java.io.IOException
The caller can use the additionalElementDecls parameter to add element declarations to the generate schema. For example, if the JAX-RPC passes in the following entry: {foo}bar -> DeclaredType for java.lang.String then JAXB generates the following element declaration (in the schema document for the namespace "foo")" <xs:element name="bar" type="xs:string" /> This can be used for generating schema components necessary for WSDL.
outputResolver
- this object controls the output to which schemas
will be sent.
java.io.IOException
- if SchemaOutputResolver
throws an IOException
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |