Package com.jalios.jcms.tools.storemerge
Class StoreMergeUtil
java.lang.Object
com.jalios.jcms.tools.storemerge.StoreMergeUtil
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]decodeArray(String value) Returns an String[] from the encoded value.Returns a Set from the encoded value.decodeList(String value) Returns a List from the encoded value.static booleanisArrayAttribute(String value1, String value2) Returns true if one of the 2 values is an array.static booleanisArrayOrCollectionAttribute(String value1, String value2) Returns true if one of the 2 values is an array or a collection.static booleanisCollectionAttribute(String value1, String value2) Returns true if one of the 2 values is a collection.static booleanisMapAttribute(String value1, String value2) Returns true if one of the 2 values is a map.
-
Constructor Details
-
StoreMergeUtil
public StoreMergeUtil()
-
-
Method Details
-
isArrayOrCollectionAttribute
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
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
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
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
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
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
Returns a List from the encoded value.- Parameters:
value- the encoded value- Returns:
- a List from the encoded value.
- Since:
- jcms-8.0.1
-