-
- All Superinterfaces:
J2SJAXBModel,JAXBModel
public interface J2SJAXBModel extends J2SJAXBModel
JAXBModelthat exposes additional information available only for thejava -> schemadirection.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgenerateEpisodeFile(Result output)Generates the episode file from the model.voidgenerateSchema(jakarta.xml.bind.SchemaOutputResolver outputResolver, ErrorListener errorListener)Generates the schema documents from the model.QNamegetXmlTypeName(Reference javaType)Returns the name of the XML Type bound to the specified Java type.-
Methods inherited from interface com.sun.tools.xjc.api.J2SJAXBModel
getXmlTypeName
-
Methods inherited from interface com.sun.tools.xjc.api.JAXBModel
getClassList
-
-
-
-
Method Detail
-
getXmlTypeName
QName getXmlTypeName(Reference javaType)
Returns the name of the XML Type bound to the specified Java type.- Parameters:
javaType- must not be null. This must be one of theReferences specified in theJavaCompiler.bind(Collection, Map, ProcessingEnvironment, String)method.- Returns:
- null if it is not a part of the input to
JavaCompiler.bind(Collection, Map, ProcessingEnvironment, String). - Throws:
IllegalArgumentException- if the parameter is null
-
generateSchema
void generateSchema(jakarta.xml.bind.SchemaOutputResolver outputResolver, ErrorListener errorListener) throws IOExceptionGenerates the schema documents from the model.- Specified by:
generateSchemain interfaceJ2SJAXBModel- Parameters:
outputResolver- this object controls the output to which schemas will be sent.- Throws:
IOException- ifSchemaOutputResolverthrows anIOException.
-
generateEpisodeFile
void generateEpisodeFile(Result output)
Generates the episode file from the model.The "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.
- Specified by:
generateEpisodeFilein interfaceJ2SJAXBModel- Parameters:
output- This receives the generated episode file.- Since:
- 2.1
-
-