Package org.faktorips.runtime.jaxb
Class ProductConfigurationXmlAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,ProductConfiguration>
org.faktorips.runtime.jaxb.ProductConfigurationXmlAdapter
public class ProductConfigurationXmlAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<String,ProductConfiguration>
Custom JAXB marshaling/unmarshaling for
ProductConfiguration instances.
When marshaling/unmarshaling a configurable policy component (and thus a
ProductConfiguration), the respective product component is preserved in XML by the means
of the product component ID.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarshal(ProductConfiguration config) Returns the ID for the configuring product component ornullif it could not be determined.Returns the product component for the specified ID.
-
Constructor Details
-
ProductConfigurationXmlAdapter
-
-
Method Details
-
marshal
Returns the ID for the configuring product component ornullif it could not be determined. Cannot return an ID if either the givenProductConfigurationisnullor if it does not contain aIProductComponentinstance.- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<String,ProductConfiguration> - Throws:
Exception
-
unmarshal
Returns the product component for the specified ID.- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<String,ProductConfiguration> - Throws:
Exception
-