Class XJCJavaModelInputImpl

  • All Implemented Interfaces:
    JavaModelInput

    public class XJCJavaModelInputImpl
    extends java.lang.Object
    implements JavaModelInput
    INTERNAL:

    Purpose: JavaModelInput implementation for XJC. Used when bootstrapping a DynamicJAXBContext from an XML Schema.

    Responsibilities:

    • Create an array of JavaClass instances from an array of Classes/JavaClasses/Types/TypeMappingInfos.
    • Return an array of JavaClass objects to be used by the generator.
    • Return the JavaModel to be used during generation.
    See Also:
    JavaModelInput
    Since:
    EclipseLink 2.1
    • Constructor Detail

      • XJCJavaModelInputImpl

        public XJCJavaModelInputImpl​(JavaClass[] types,
                                     JavaModel javaModel)
        Construct a new instance of XJCJavaModelInputImpl.
        Parameters:
        types - - an array of JavaClasses for which to generate mappings.
        javaModel - - the JavaModel to be used.
      • XJCJavaModelInputImpl

        public XJCJavaModelInputImpl​(java.lang.reflect.Type[] types,
                                     JavaModel javaModel)
        Construct a new instance of XJCJavaModelInputImpl.
        Parameters:
        types - - an array of Types for which to generate mappings.
        javaModel - - the JavaModel to be used.
      • XJCJavaModelInputImpl

        public XJCJavaModelInputImpl​(TypeMappingInfo[] types,
                                     JavaModel javaModel)
        Construct a new instance of XJCJavaModelInputImpl.
        Parameters:
        types - - an array of TypeMappingInfos for which to generate mappings.
        javaModel - - the JavaModel to be used.
      • XJCJavaModelInputImpl

        public XJCJavaModelInputImpl​(java.lang.Class<?>[] classes,
                                     JavaModel javaModel)
        Construct a new instance of XJCJavaModelInputImpl.
        Parameters:
        classes - - an array of Java Classes for which to generate mappings.
        javaModel - - the JavaModel to be used.
    • Method Detail

      • getJavaClasses

        public JavaClass[] getJavaClasses()
        Returns this JavaModelInput's array of JavaClasses.
        Specified by:
        getJavaClasses in interface JavaModelInput
        Returns:
        this JavaModelInput's array of JavaClasses.
      • getJavaModel

        public JavaModel getJavaModel()
        Returns this JavaModelInput's JavaModel.
        Specified by:
        getJavaModel in interface JavaModelInput
        Returns:
        this JavaModelInput's JavaModel.