Class OXMJavaModelInputImpl

java.lang.Object
org.eclipse.persistence.jaxb.javamodel.oxm.OXMJavaModelInputImpl
All Implemented Interfaces:
JavaModelInput

public class OXMJavaModelInputImpl extends Object implements JavaModelInput
INTERNAL:

Purpose: JavaModelInput implementation backed by a collection of MOXY's xmlmodel.JavaClasses.. Used when bootstrapping a DynamicJAXBContext from XML Bindings.

Responsibilities:

  • Return an array of JavaClass objects to be used by the generator.
  • Return the JavaModel to be used during generation.
Since:
EclipseLink 2.2
See Also:
  • Constructor Details

    • OXMJavaModelInputImpl

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

    • 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.