Class ConversionParameters
java.lang.Object
de.hybris.platform.odata2services.converter.ConversionParameters
Parameters providing context for converting an attribute value in the payload. Depending on the attribute type the value
may be converted into a collection of primitives or of
IntegrationItems, or a primitive, an IntegrationItem,
a Map, etc. value.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder for creating instances ofConversionParameters -
Method Summary
Modifier and TypeMethodDescriptionRetrieves name of the attribute, whose value is being converted.Retrieves value to be converted.Specifies the request content language.org.apache.olingo.odata2.api.processor.ODataContextRetrieves OData request context.RetrievesIntegrationItem, in which the converted attribute value will be set.Retrieves type descriptor for the attribute to set in theIntegrationItemRetrieves type descriptor for the type in the type system corresponding to the ODataEntry being converted.booleanDetermines whether Content-Language was explicitly specified for the request.booleanDetermines whether the ODataEntry attribute being converted corresponds to a Map attribute in the platform.
-
Method Details
-
getAttributeName
Retrieves name of the attribute, whose value is being converted.- Returns:
- name of the attribute to convert value for.
-
getAttributeValue
Retrieves value to be converted.- Returns:
- value the attribute has in ODataEntry and, which has to be converted to be acceptable by
OData independent
IntegrationItem.
-
getContext
public org.apache.olingo.odata2.api.processor.ODataContext getContext()Retrieves OData request context.- Returns:
- OData context describing the request.
-
getIntegrationItem
RetrievesIntegrationItem, in which the converted attribute value will be set.- Returns:
- item to set converted value to.
-
getTypeAttributeDescriptor
Retrieves type descriptor for the attribute to set in theIntegrationItem- Returns:
- type descriptor for the attribute to set, if the ODataEntry attribute exists in the
corresponding type in the type system or
nullotherwise. - See Also:
-
getTypeDescriptor
Retrieves type descriptor for the type in the type system corresponding to the ODataEntry being converted.- Returns:
- IntegrationItem type.
- See Also:
-
getContentLocale
Specifies the request content language.- Returns:
- a locale corresponding to the value specified in the Content-Language header or the default system locale, if the content language was not specified explicitly.
- See Also:
-
isMapAttributeValue
public boolean isMapAttributeValue()Determines whether the ODataEntry attribute being converted corresponds to a Map attribute in the platform.- Returns:
true, if the context attribute is a Map attribute in the type system;falseotherwise.
-
isContentLanguagePresent
public boolean isContentLanguagePresent()Determines whether Content-Language was explicitly specified for the request.- Returns:
true, if the Content-Language is present in the request;false, otherwise.
-