|
||||||||||
| 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<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration> types,
com.sun.xml.bind.v2.model.annotation.AnnotationReader<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration> reader,
java.util.Collection<Reference> rootClasses,
java.util.Map<javax.xml.namespace.QName,Reference> additionalElementDecls)
|
|
| Method Summary | |
|---|---|
void |
generateEpisodeFile(javax.xml.transform.Result output)
Generates the episode file from the model. |
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<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration> types,
com.sun.xml.bind.v2.model.annotation.AnnotationReader<TypeMirror,TypeDeclaration,FieldDeclaration,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()
JAXBModelJAXBContext.
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 JAXBModelpublic javax.xml.namespace.QName getXmlTypeName(Reference javaType)
J2SJAXBModel
getXmlTypeName in interface J2SJAXBModeljavaType - must not be null. This must be one of the References specified
in the JavaCompiler.bind(java.util.Collection, java.util.Map, java.lang.String, AnnotationProcessorEnvironment) method.
JavaCompiler.bind(java.util.Collection, java.util.Map, java.lang.String, AnnotationProcessorEnvironment) .
public void generateSchema(javax.xml.bind.SchemaOutputResolver outputResolver,
ErrorListener errorListener)
throws java.io.IOException
J2SJAXBModel
generateSchema in interface J2SJAXBModeloutputResolver - this object controls the output to which schemas
will be sent.
java.io.IOException - if SchemaOutputResolver throws an IOException.public void generateEpisodeFile(javax.xml.transform.Result output)
J2SJAXBModelThe "episode file" is really just a JAXB customization file (but with vendor extensions, at this point), that can be used later with a schema compilation to support separate compilation.
generateEpisodeFile in interface J2SJAXBModeloutput - This receives the generated episode file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||