Class XmlBindingSupportHelper<JAXBContext>
java.lang.Object
org.faktorips.runtime.internal.xml.XmlBindingSupportHelper<JAXBContext>
- All Implemented Interfaces:
IXmlBindingSupport<JAXBContext>
public class XmlBindingSupportHelper<JAXBContext>
extends Object
implements IXmlBindingSupport<JAXBContext>
Abstract implementation of the
IXmlBindingSupport to avoid duplication of code in the
JAXB/Jakarta XML Binding implementations.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionXmlBindingSupportHelper(Class<? extends Annotation> xmlRootAnnotationClass, Function<Class<?>[], JAXBContext> jaxbContextConstructor, XmlBindingSupportHelper.XmlBindingContextConstructor<JAXBContext> xmlBindingContextConstructor) -
Method Summary
Modifier and TypeMethodDescriptionnewJAXBContext(JAXBContext ctx, IRuntimeRepository repository) Creates aJAXBContextthat wraps the provided context and extends the marshaling methods to provide marshaling of Faktor-IPS enumerations and model objects configured by product components.newJAXBContext(IRuntimeRepository repository) Creates a newJAXBContextthat can marshal / unmarshal all model classes defined in the given repository.
-
Constructor Details
-
XmlBindingSupportHelper
public XmlBindingSupportHelper(Class<? extends Annotation> xmlRootAnnotationClass, Function<Class<?>[], JAXBContext> jaxbContextConstructor, XmlBindingSupportHelper.XmlBindingContextConstructor<JAXBContext> xmlBindingContextConstructor)
-
-
Method Details
-
newJAXBContext
Description copied from interface:IXmlBindingSupportCreates a newJAXBContextthat can marshal / unmarshal all model classes defined in the given repository. If the repository references other repositories (directly or indirectly), the context can also handle the classes defined in those.- Specified by:
newJAXBContextin interfaceIXmlBindingSupport<JAXBContext>
-
newJAXBContext
Description copied from interface:IXmlBindingSupportCreates aJAXBContextthat wraps the provided context and extends the marshaling methods to provide marshaling of Faktor-IPS enumerations and model objects configured by product components.- Specified by:
newJAXBContextin interfaceIXmlBindingSupport<JAXBContext>
-