public class Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
regexAreaRef |
static Pattern |
regexAreaRefPattern |
static String |
regexCellRef |
static String |
regexCellRefExcludingJointed |
static String |
regexJointedCellRef |
static String |
regexJointedLookBehind |
static String |
regexSimpleCellRef |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createTargetCellRef(List<CellRef> targetCellDataList) |
static List<CellRef> |
createTargetCellRefListByColumn(CellRef targetFormulaCellRef,
List<CellRef> targetCells,
List<CellRef> cellRefsToExclude) |
static boolean |
formulaContainsJointedCellRef(String formula) |
static List<String> |
getCellRefsFromJointedCellRef(String jointedCellRef) |
static List<String> |
getFormulaCellRefs(String formula) |
static List<String> |
getJointedCellRefs(String formula) |
static Object |
getObjectProperty(Object obj,
String propertyName) |
static Object |
getObjectProperty(Object obj,
String propertyName,
boolean failSilently) |
static List<List<CellRef>> |
groupByColRange(List<CellRef> cellRefList) |
static List<List<CellRef>> |
groupByRanges(List<CellRef> cellRefList,
int targetRangeCount) |
static List<List<CellRef>> |
groupByRowRange(List<CellRef> cellRefList) |
static Collection<GroupData> |
groupCollection(Collection collection,
String groupProperty,
String groupOrder) |
static Boolean |
isConditionTrue(ExpressionEvaluator evaluator,
String condition,
Context context) |
static Boolean |
isConditionTrue(JexlExpressionEvaluator evaluator,
Context context) |
static String |
joinStrings(List<String> strings,
String separator) |
static void |
setObjectProperty(Object obj,
String propertyName,
String propertyValue) |
static void |
setObjectProperty(Object obj,
String propertyName,
String propertyValue,
boolean ignoreNonExisting) |
static String |
sheetNameRegex(Map.Entry<CellRef,List<CellRef>> cellRefEntry) |
static byte[] |
toByteArray(InputStream stream)
Reads all the data from the input stream, and returns the bytes read.
|
static Collection |
transformToCollectionObject(ExpressionEvaluator expressionEvaluator,
String collectionName,
Context context) |
public static final String regexJointedLookBehind
public static final String regexSimpleCellRef
public static final String regexCellRef
public static final String regexAreaRef
public static final Pattern regexAreaRefPattern
public static final String regexCellRefExcludingJointed
public static final String regexJointedCellRef
public static List<String> getCellRefsFromJointedCellRef(String jointedCellRef)
public static boolean formulaContainsJointedCellRef(String formula)
public static List<List<CellRef>> groupByRanges(List<CellRef> cellRefList, int targetRangeCount)
public static Boolean isConditionTrue(ExpressionEvaluator evaluator, String condition, Context context)
public static Boolean isConditionTrue(JexlExpressionEvaluator evaluator, Context context)
public static void setObjectProperty(Object obj, String propertyName, String propertyValue, boolean ignoreNonExisting)
public static void setObjectProperty(Object obj, String propertyName, String propertyValue) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
public static Object getObjectProperty(Object obj, String propertyName, boolean failSilently)
public static Object getObjectProperty(Object obj, String propertyName) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
public static Collection<GroupData> groupCollection(Collection collection, String groupProperty, String groupOrder)
public static byte[] toByteArray(InputStream stream) throws IOException
IOExceptionpublic static Collection transformToCollectionObject(ExpressionEvaluator expressionEvaluator, String collectionName, Context context)
Copyright © 2016. All rights reserved.