Package org.faktorips.runtime.jaxb
Class IpsJAXBContext
- java.lang.Object
-
- javax.xml.bind.JAXBContext
-
- org.faktorips.runtime.jaxb.IpsJAXBContext
-
public class IpsJAXBContext extends javax.xml.bind.JAXBContextWraps a given JAXBContext 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 hold by a Faktor-IPS IRuntimeRepository. SeecreateMarshaller()andcreateUnmarshaller()for more details. All other methods just delegate to the wrapped context.- Author:
- Jan Ortmann
-
-
Constructor Summary
Constructors Constructor Description IpsJAXBContext(javax.xml.bind.JAXBContext wrappedCtx, java.util.List<? extends javax.xml.bind.annotation.adapters.XmlAdapter<?,?>> enumXmlAdapters, IRuntimeRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.bind.Binder<org.w3c.dom.Node>createBinder()<T> javax.xml.bind.Binder<T>createBinder(java.lang.Class<T> domType)javax.xml.bind.JAXBIntrospectorcreateJAXBIntrospector()javax.xml.bind.MarshallercreateMarshaller()javax.xml.bind.UnmarshallercreateUnmarshaller()javax.xml.bind.ValidatorcreateValidator()voidgenerateSchema(javax.xml.bind.SchemaOutputResolver outputResolver)IRuntimeRepositorygetRepository()Returns the Faktor-IPS runtime repository.
-
-
-
Constructor Detail
-
IpsJAXBContext
public IpsJAXBContext(javax.xml.bind.JAXBContext wrappedCtx, java.util.List<? extends javax.xml.bind.annotation.adapters.XmlAdapter<?,?>> enumXmlAdapters, IRuntimeRepository repository)
-
-
Method Detail
-
getRepository
public IRuntimeRepository getRepository()
Returns the Faktor-IPS runtime repository.
-
createMarshaller
public javax.xml.bind.Marshaller createMarshaller() throws javax.xml.bind.JAXBException- Specified by:
createMarshallerin classjavax.xml.bind.JAXBContext- Throws:
javax.xml.bind.JAXBException
-
createUnmarshaller
public javax.xml.bind.Unmarshaller createUnmarshaller() throws javax.xml.bind.JAXBException- Specified by:
createUnmarshallerin classjavax.xml.bind.JAXBContext- Throws:
javax.xml.bind.JAXBException
-
createValidator
public javax.xml.bind.Validator createValidator() throws javax.xml.bind.JAXBException- Specified by:
createValidatorin classjavax.xml.bind.JAXBContext- Throws:
javax.xml.bind.JAXBException
-
createBinder
public javax.xml.bind.Binder<org.w3c.dom.Node> createBinder()
- Overrides:
createBinderin classjavax.xml.bind.JAXBContext
-
createBinder
public <T> javax.xml.bind.Binder<T> createBinder(java.lang.Class<T> domType)
- Overrides:
createBinderin classjavax.xml.bind.JAXBContext
-
createJAXBIntrospector
public javax.xml.bind.JAXBIntrospector createJAXBIntrospector()
- Overrides:
createJAXBIntrospectorin classjavax.xml.bind.JAXBContext
-
generateSchema
public void generateSchema(javax.xml.bind.SchemaOutputResolver outputResolver) throws java.io.IOException- Overrides:
generateSchemain classjavax.xml.bind.JAXBContext- Throws:
java.io.IOException
-
-