Class ProductConfigurationXmlAdapter
java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,org.faktorips.runtime.internal.ProductConfiguration>
org.faktorips.runtime.xml.jakarta.ProductConfigurationXmlAdapter
- All Implemented Interfaces:
org.faktorips.runtime.xml.IIpsXmlAdapter<String,org.faktorips.runtime.internal.ProductConfiguration>
public class ProductConfigurationXmlAdapter
extends jakarta.xml.bind.annotation.adapters.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. -
unmarshal
Returns the product component for the specified ID.
-