Class MarshallerUtil
java.lang.Object
de.hybris.platform.cmsocc.jaxb.adapters.MarshallerUtil
Utility class to use with marshaling.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertNestedComponentToMap(ComponentWsDTO componentDTO) convertToAdaptedEntry(Map.Entry<String, Object> entry) ConvertMap.Entryentry toKeyMapAdaptedEntryAdapter.KeyMapAdaptedEntryobjectprotected static booleanisCollection(Object valueObj) Method tests whether theObjectis aCollection.protected static booleanprotected static booleanisPrimitive(Object valueObj) Method tests whether theObjectis a primitive type or a string.marshalMap(Map<String, Object> map) Converts map with String/Object pairs into a list of KeyMapAdaptedEntry
-
Field Details
-
entryContainsNullPredicate
Predicate to test whether theMap.Entrycontains null value.
-
-
Constructor Details
-
MarshallerUtil
public MarshallerUtil()
-
-
Method Details
-
marshalMap
Converts map with String/Object pairs into a list of KeyMapAdaptedEntry- Parameters:
map- the source map to be converted- Returns:
- List
-
isPrimitive
Method tests whether theObjectis a primitive type or a string. -
isCollection
Method tests whether theObjectis aCollection.- Parameters:
valueObj- theObjectto test- Returns:
- true if the
Objectis aCollection, false otherwise.
-
isMap
-
convertNestedComponentToMap
-
convertToAdaptedEntry
public static KeyMapAdaptedEntryAdapter.KeyMapAdaptedEntry convertToAdaptedEntry(Map.Entry<String, Object> entry) ConvertMap.Entryentry toKeyMapAdaptedEntryAdapter.KeyMapAdaptedEntryobject- Parameters:
entry- theMap.Entryto convert.- Returns:
- the
KeyMapAdaptedEntryAdapter.KeyMapAdaptedEntryobject
-