public class ProductConfigurationXmlAdapter extends XmlAdapter<String,ProductConfiguration>
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 and Description |
|---|
ProductConfigurationXmlAdapter(IRuntimeRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
String |
marshal(ProductConfiguration config)
Returns the ID for the configuring product component or
null if it could not be
determined. |
ProductConfiguration |
unmarshal(String id)
Returns the product component for the specified ID.
|
public ProductConfigurationXmlAdapter(IRuntimeRepository repository)
public String marshal(ProductConfiguration config) throws Exception
null if it could not be
determined. Cannot return an ID if either the given ProductConfiguration is
null or if it does not contain a IProductComponent instance.marshal in class XmlAdapter<String,ProductConfiguration>Exceptionpublic ProductConfiguration unmarshal(String id) throws Exception
unmarshal in class XmlAdapter<String,ProductConfiguration>ExceptionCopyright © 2023. All rights reserved.