public class SCConfigUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOGGER |
static java.lang.String |
NEW_TEMPLATE_PREFIX |
| Constructor and Description |
|---|
SCConfigUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
createCRCId(java.lang.String idString)
Generates a universal uniqueid
|
static java.lang.String |
extractValueFromXMLUsingRegex(java.lang.String toFindIn,
java.lang.String contentidregex)
Used to extract a certain XMl element from a string that represents an XML.
|
static java.lang.String |
extractValueFromXMLUsingRegex(java.lang.String toFindIn,
java.lang.String contentidregex,
int flag)
Used to extract a certain XMl element from a string that represents an XML.
|
static java.lang.String |
longToString(long longValue)
Converts long value to String.
|
static java.lang.String |
makeAppList(java.util.HashSet hs)
Makes comma seperated applist based on current apps
|
public static final java.lang.String NEW_TEMPLATE_PREFIX
public static final java.lang.String LOGGER
public static java.lang.String makeAppList(java.util.HashSet hs)
HashSet - of all allowed applicationspublic static java.lang.String longToString(long longValue)
longValue - public static java.lang.String createCRCId(java.lang.String idString)
public static java.lang.String extractValueFromXMLUsingRegex(java.lang.String toFindIn,
java.lang.String contentidregex,
int flag)
if we want to extract contentuid, then use regex as contentuid=\"([^\"]*)\" toFindIn - String to find incontentidregex - - regular expressionPattern - search flag eg Pattern.CASE_INSENSITIVEpublic static java.lang.String extractValueFromXMLUsingRegex(java.lang.String toFindIn,
java.lang.String contentidregex)
if we want to extract contentuid, then use regex as contentuid=\"([^\"]*)\"
Will with Pattern.CASE_INSENSITIVE as default toFindIn - String to find incontentidregex - - regular expression