Package com.jalios.jcms.tools.storemerge
Class StoreMergeUtil
- java.lang.Object
-
- com.jalios.jcms.tools.storemerge.StoreMergeUtil
-
- All Implemented Interfaces:
StoreConstants
public class StoreMergeUtil extends java.lang.Object implements StoreConstants
-
-
Field Summary
-
Fields inherited from interface com.jalios.jstore.StoreConstants
ARRAY_FLAG, CLEANING_STATE, COLLECTION_FLAG, CREATE_OP, DELETE_OP, IDLE_STATE, INNER_LOGS, INNER_MILESTONE, INNER_PREFIX, INNER_SYNC, ITEM_ESCAPE_CHAR, ITEM_SEPARATOR, LOADING_STATE, LOG_DIR_LOG_PREFIX, LOG_DIR_LOG_WORK, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP
-
-
Constructor Summary
Constructors Constructor Description StoreMergeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
decodeArray(java.lang.String value)
Returns an String[] from the encoded value.static java.util.Set<java.lang.String>
decodeCollectionOrMapItemSet(java.lang.String value)
Returns a Set from the encoded value.static java.util.List<java.lang.String>
decodeList(java.lang.String value)
Returns a List from the encoded value.static boolean
isArrayAttribute(java.lang.String value1, java.lang.String value2)
Returns true if one of the 2 values is an array.static boolean
isArrayOrCollectionAttribute(java.lang.String value1, java.lang.String value2)
Returns true if one of the 2 values is an array or a collection.static boolean
isCollectionAttribute(java.lang.String value1, java.lang.String value2)
Returns true if one of the 2 values is a collection.static boolean
isMapAttribute(java.lang.String value1, java.lang.String value2)
Returns true if one of the 2 values is a map.
-
-
-
Method Detail
-
isArrayOrCollectionAttribute
public static boolean isArrayOrCollectionAttribute(java.lang.String value1, java.lang.String value2)
Returns true if one of the 2 values is an array or a collection.- Parameters:
value1
- the first valuevalue2
- the second value.- Returns:
- true if one of the 2 values is an array or a collection.
- Since:
- jcms-8.0.1
-
isMapAttribute
public static boolean isMapAttribute(java.lang.String value1, java.lang.String value2)
Returns true if one of the 2 values is a map.- Parameters:
value1
- the first valuevalue2
- the second value.- Returns:
- true if one of the 2 values is a map.
- Since:
- jcms-8.0.1
-
isCollectionAttribute
public static boolean isCollectionAttribute(java.lang.String value1, java.lang.String value2)
Returns true if one of the 2 values is a collection.- Parameters:
value1
- the first valuevalue2
- the second value.- Returns:
- true if one of the 2 values is a collection.
- Since:
- jcms-8.0.1
-
isArrayAttribute
public static boolean isArrayAttribute(java.lang.String value1, java.lang.String value2)
Returns true if one of the 2 values is an array.- Parameters:
value1
- the first valuevalue2
- the second value.- Returns:
- true if one of the 2 values is an array.
- Since:
- jcms-8.0.1
-
decodeArray
public static java.lang.String[] decodeArray(java.lang.String value)
Returns an String[] from the encoded value.- Parameters:
value
- the encoded value- Returns:
- an String[] from the encoded value.
- Since:
- jcms-8.0.1
-
decodeCollectionOrMapItemSet
public static java.util.Set<java.lang.String> decodeCollectionOrMapItemSet(java.lang.String value)
Returns a Set from the encoded value.- Parameters:
value
- the encoded value- Returns:
- a Set from the encoded value.
- Since:
- jcms-8.0.1
-
decodeList
public static java.util.List<java.lang.String> decodeList(java.lang.String value)
Returns a List from the encoded value.- Parameters:
value
- the encoded value- Returns:
- a List from the encoded value.
- Since:
- jcms-8.0.1
-
-