Package org.faktorips.runtime.xml
Class IpsProductConfigurationXmlAdapter
java.lang.Object
org.faktorips.runtime.xml.IpsProductConfigurationXmlAdapter
- All Implemented Interfaces:
IIpsXmlAdapter<String,ProductConfiguration>
public class IpsProductConfigurationXmlAdapter
extends Object
implements IIpsXmlAdapter<String,ProductConfiguration>
Custom XML 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
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
-
IpsProductConfigurationXmlAdapter
-
-
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 interfaceIIpsXmlAdapter<String,ProductConfiguration> - Parameters:
config- The value to be converted. Can be null.- Throws:
Exception- if there's an error during the conversion.
-
unmarshal
Returns the product component for the specified ID.- Specified by:
unmarshalin interfaceIIpsXmlAdapter<String,ProductConfiguration> - Parameters:
id- The value to be converted. Can be null.- Throws:
Exception- if there's an error during the conversion.
-