|
||||||||||
| 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(TypeInfoSet<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration> types,
AnnotationReader<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration> reader,
Collection<Reference> rootClasses,
Map<QName,Reference> additionalElementDecls)
|
|
| Method Summary | |
|---|---|
void |
generateEpisodeFile(Result output)
Generates the episode file from the model. |
void |
generateSchema(SchemaOutputResolver outputResolver,
ErrorListener errorListener)
Generates the schema documents from the model. |
List<String> |
getClassList()
Returns a list of fully-qualified class names, which should be used at the runtime to create a new JAXBContext. |
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(TypeInfoSet<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration> types,
AnnotationReader<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration> reader,
Collection<Reference> rootClasses,
Map<QName,Reference> additionalElementDecls)
| Method Detail |
|---|
public List<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 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, 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(SchemaOutputResolver outputResolver,
ErrorListener errorListener)
throws IOException
J2SJAXBModel
generateSchema in interface J2SJAXBModeloutputResolver - this object controls the output to which schemas
will be sent.
IOException - if SchemaOutputResolver throws an IOException.public void generateEpisodeFile(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 | |||||||||