Class IpsJAXBContext

java.lang.Object
jakarta.xml.bind.JAXBContext
org.faktorips.runtime.xml.jakarta.IpsJAXBContext

public class IpsJAXBContext extends jakarta.xml.bind.JAXBContext
Wraps a given JAXBContext, from the jakarta project, and provides marshallers/unmarshallers that resolve the reference from configurable model objects to product components. Additionally it provides the marshalling of Faktor-IPS enumerations that defer their values to an enumeration content that is held by a Faktor-IPS [@link IRuntimeRepository}. See createMarshaller() and createUnmarshaller() for more details. All other methods just delegate to the wrapped context.
  • Field Summary

    Fields inherited from class jakarta.xml.bind.JAXBContext

    JAXB_CONTEXT_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    IpsJAXBContext(jakarta.xml.bind.JAXBContext wrappedCtx, List<? extends org.faktorips.runtime.xml.IIpsXmlAdapter<?,?>> enumXmlAdapters, org.faktorips.runtime.IRuntimeRepository repository)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.xml.bind.Binder<Node>
     
    <T> jakarta.xml.bind.Binder<T>
    createBinder(Class<T> domType)
     
    jakarta.xml.bind.JAXBIntrospector
     
    jakarta.xml.bind.Marshaller
     
    jakarta.xml.bind.Unmarshaller
     
    void
    generateSchema(jakarta.xml.bind.SchemaOutputResolver outputResolver)
     
    org.faktorips.runtime.IRuntimeRepository
    Returns the Faktor-IPS runtime repository.

    Methods inherited from class jakarta.xml.bind.JAXBContext

    newInstance, newInstance, newInstance, newInstance, newInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IpsJAXBContext

      public IpsJAXBContext(jakarta.xml.bind.JAXBContext wrappedCtx, List<? extends org.faktorips.runtime.xml.IIpsXmlAdapter<?,?>> enumXmlAdapters, org.faktorips.runtime.IRuntimeRepository repository)
  • Method Details

    • getRepository

      public org.faktorips.runtime.IRuntimeRepository getRepository()
      Returns the Faktor-IPS runtime repository.
    • createMarshaller

      public jakarta.xml.bind.Marshaller createMarshaller() throws jakarta.xml.bind.JAXBException
      Specified by:
      createMarshaller in class jakarta.xml.bind.JAXBContext
      Throws:
      jakarta.xml.bind.JAXBException
    • createUnmarshaller

      public jakarta.xml.bind.Unmarshaller createUnmarshaller() throws jakarta.xml.bind.JAXBException
      Specified by:
      createUnmarshaller in class jakarta.xml.bind.JAXBContext
      Throws:
      jakarta.xml.bind.JAXBException
    • createBinder

      public jakarta.xml.bind.Binder<Node> createBinder()
      Overrides:
      createBinder in class jakarta.xml.bind.JAXBContext
    • createBinder

      public <T> jakarta.xml.bind.Binder<T> createBinder(Class<T> domType)
      Overrides:
      createBinder in class jakarta.xml.bind.JAXBContext
    • createJAXBIntrospector

      public jakarta.xml.bind.JAXBIntrospector createJAXBIntrospector()
      Overrides:
      createJAXBIntrospector in class jakarta.xml.bind.JAXBContext
    • generateSchema

      public void generateSchema(jakarta.xml.bind.SchemaOutputResolver outputResolver) throws IOException
      Overrides:
      generateSchema in class jakarta.xml.bind.JAXBContext
      Throws:
      IOException