Package org.faktorips.runtime.xml.javax
Class ProductConfigurationXmlAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,org.faktorips.runtime.internal.ProductConfiguration>
org.faktorips.runtime.xml.javax.ProductConfigurationXmlAdapter
- All Implemented Interfaces:
org.faktorips.runtime.xml.IIpsXmlAdapter<String,org.faktorips.runtime.internal.ProductConfiguration>
public class ProductConfigurationXmlAdapter
extends XmlAdapter<String,org.faktorips.runtime.internal.ProductConfiguration>
implements org.faktorips.runtime.xml.IIpsXmlAdapter<String,org.faktorips.runtime.internal.ProductConfiguration>
Custom JAXB marshalling/unmarshalling for
ProductConfiguration instances.
When marshalling/unmarshalling 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
ConstructorsConstructorDescriptionProductConfigurationXmlAdapter(org.faktorips.runtime.IRuntimeRepository repository) -
Method Summary
Modifier and TypeMethodDescriptionmarshal(org.faktorips.runtime.internal.ProductConfiguration config) Returns the ID for the configuring product component ornullif it could not be determined.org.faktorips.runtime.internal.ProductConfigurationReturns the product component for the specified ID.
-
Constructor Details
-
ProductConfigurationXmlAdapter
public ProductConfigurationXmlAdapter(org.faktorips.runtime.IRuntimeRepository repository)
-
-
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 interfaceorg.faktorips.runtime.xml.IIpsXmlAdapter<String,org.faktorips.runtime.internal.ProductConfiguration> - Specified by:
marshalin classXmlAdapter<String,org.faktorips.runtime.internal.ProductConfiguration> - Throws:
Exception
-
unmarshal
Returns the product component for the specified ID.- Specified by:
unmarshalin interfaceorg.faktorips.runtime.xml.IIpsXmlAdapter<String,org.faktorips.runtime.internal.ProductConfiguration> - Specified by:
unmarshalin classXmlAdapter<String,org.faktorips.runtime.internal.ProductConfiguration> - Throws:
Exception
-