Package org.faktorips.runtime.jaxb
Class ProductConfigurationXmlAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,ProductConfiguration>
org.faktorips.runtime.jaxb.ProductConfigurationXmlAdapter
- All Implemented Interfaces:
IIpsXmlAdapter<String,ProductConfiguration>
@Deprecated
public class ProductConfigurationXmlAdapter
extends XmlAdapter<String,ProductConfiguration>
implements IIpsXmlAdapter<String,ProductConfiguration>
Deprecated.
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarshal(ProductConfiguration config) Deprecated.Returns the ID for the configuring product component ornullif it could not be determined.Deprecated.Returns the product component for the specified ID.
-
Constructor Details
-
ProductConfigurationXmlAdapter
Deprecated.
-
-
Method Details
-
marshal
Deprecated.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> - Specified by:
marshalin classXmlAdapter<String,ProductConfiguration> - Parameters:
config- The value to be converted. Can be null.- Throws:
Exception- if there's an error during the conversion.
-
unmarshal
Deprecated.Returns the product component for the specified ID.- Specified by:
unmarshalin interfaceIIpsXmlAdapter<String,ProductConfiguration> - Specified by:
unmarshalin classXmlAdapter<String,ProductConfiguration> - Parameters:
id- The value to be converted. Can be null.- Throws:
Exception- if there's an error during the conversion.
-
org.faktorips.runtime.xml.javax.ProductConfigurationXmlAdapterororg.faktorips.runtime.xml.jakarta.ProductConfigurationXmlAdapterinstead