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