Class AttributeConverterMapping

java.lang.Object
de.hybris.platform.commercefacades.xstream.conv.TypeConverterMapping
de.hybris.platform.commercefacades.xstream.conv.AttributeConverterMapping

public class AttributeConverterMapping extends TypeConverterMapping
Abstraction for the attribute converter mapping. Mapping entry which is being used to find a Converter while marshaling/unmarshaling attribute getAttributeName() of data object.
 
 final XStream xstream  = .... ;
 xstream.registerLocalConverter(TypeConverterMapping.getAliasedClass(),getAttributeName(),TypeConverterMapping.getConverter());
 
 
Such spring configuration
 
 
    <bean class="de.hybris.platform.commercefacades.xstream.conv.AttributeConverterMapping" >
       <property name="aliasedClass" value="de.hybris.platform.commercefacades.product.data.SomeData" />
          <property name="converter" >
             <bean class="de.hybris.platform.commercewebservices.conv.SomeConverter" />
          </property>
       <property name="attributeName" value="date" />
    </bean>
 
 
, determines that a de.hybris.platform.commercewebservices.conv.SomeConverter will be used for marshaling/unmarshaling SomeData's date attribute.
  • Constructor Details

    • AttributeConverterMapping

      public AttributeConverterMapping()
  • Method Details

    • setAttributeName

      public void setAttributeName(String name)
    • getAttributeName

      public String getAttributeName()