|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.xjc.api.impl.j2s.JAXBModelImpl
final class JAXBModelImpl
Constructor Summary | |
---|---|
JAXBModelImpl(com.sun.xml.bind.v2.model.core.TypeInfoSet<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration> types,
com.sun.xml.bind.v2.model.annotation.AnnotationReader<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration> reader,
java.util.Collection<Reference> rootClasses,
java.util.Map<javax.xml.namespace.QName,Reference> additionalElementDecls)
|
Method Summary | |
---|---|
void |
generateSchema(javax.xml.bind.SchemaOutputResolver outputResolver,
ErrorListener errorListener)
Generates the schema documents from the model. |
java.util.List<java.lang.String> |
getClassList()
Returns a list of fully-qualified class names, which should be used at the runtime to create a new JAXBContext . |
javax.xml.namespace.QName |
getXmlTypeName(Reference javaType)
Returns the name of the XML Type bound to the specified Java type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JAXBModelImpl(com.sun.xml.bind.v2.model.core.TypeInfoSet<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration> types, com.sun.xml.bind.v2.model.annotation.AnnotationReader<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration> reader, java.util.Collection<Reference> rootClasses, java.util.Map<javax.xml.namespace.QName,Reference> additionalElementDecls)
Method Detail |
---|
public java.util.List<java.lang.String> getClassList()
JAXBModel
JAXBContext
.
Until the JAXB team fixes the bootstrapping issue, we have
two bootstrapping methods. This one is to use a list of class names
to call JAXBContext.newInstance(Class[])
method. If
this method returns non-null, the caller is expected to use
that method. This is meant to be a temporary workaround.
getClassList
in interface JAXBModel
public javax.xml.namespace.QName getXmlTypeName(Reference javaType)
J2SJAXBModel
getXmlTypeName
in interface J2SJAXBModel
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)
.public void generateSchema(javax.xml.bind.SchemaOutputResolver outputResolver, ErrorListener errorListener) throws java.io.IOException
J2SJAXBModel
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.
generateSchema
in interface J2SJAXBModel
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 |