Modifier and Type | Class and Description |
---|---|
static class |
Utils.ValueComparer |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATE_PATTERN |
static java.lang.String |
DATE_PATTERN_XML |
static java.lang.String |
DATETIME_PATTERN |
static java.lang.String |
DATETIME_PATTERN_XML |
static java.lang.String |
TIME_PATTERN |
static java.lang.String |
TIME_PATTERN_XML |
ADDRESS_TYPE_EMAIL, ADDRESS_TYPE_IP, ADDRESS_TYPE_SMS, CSS_BOOLEANINPUT, CSS_DATEINPUT, CSS_DURATIONINPUT, CSS_ERRORINPUT, CSS_ERRORTEXT, CSS_INTINPUT, CSS_REQUIRED, CSS_TEXTINPUT, CSS_WARNINGINPUT, CSS_WARNINGTEXT, CSV_DELIMITER, DELIMITER, LANGUAGE_ATTRIBUTE_NAME, LANGUAGE_DEFAULT, LANGUAGES, MSGREL_AFTER, MSGREL_BEFORE, RESOURCE_STATUS_AVAILABLE, RESOURCE_STATUS_NOTAVAILABLE, RESOURCE_STATUS_REQUESTED, RESOURCE_STATUS_RESERVED, RESOURCE_STATUS_UNCHECKED, RESOURCE_STATUS_UNKNOWN, UTILISATION_TYPE_BEGIN, UTILISATION_TYPE_END, UTILISATION_TYPE_PLAN, WORD_SEPARATORS, XML_ACTIVITY, XML_ACTIVITYNAME, XML_ACTIVITYTYPE, XML_ADDRESS, XML_ADDRESSTYPE, XML_CAPABILITY, XML_CASEID, XML_CATEGORY, XML_CHANNEL, XML_DUMMY, XML_DURATION, XML_ENDTASKID, XML_ERROR, XML_EVENT_RECEIVE, XML_FILTERMODEL, XML_FROM, XML_ID, XML_MAX, XML_MESSAGE_SEND, XML_MESSAGEPUSH_SEND, XML_MESSAGES, XML_MIN, XML_MSGBODY, XML_MSGDURATION, XML_MSGREL, XML_MSGTO, XML_MSGTRANSFER, XML_MSGUTILISATIONTYPE, XML_OTHERACTIVITYNAME, XML_OTHERUTILISATIONTYPE, XML_PAYLOAD, XML_REQUESTTYPE, XML_RESCHEDULING, XML_RESERVATION, XML_RESERVATIONID, XML_RESOURCE, XML_RESOURCE_TYPE, XML_ROLE, XML_RUP, XML_RUP_LIGHT, XML_STARTTASKID, XML_STATUS, XML_STATUSTOBE, XML_SUBCATEGORY, XML_TEXT, XML_THISUTILISATIONTYPE, XML_TIMESTAMP, XML_TO, XML_UNIT, XML_UTILISATION, XML_UTILISATION_TYPE, XML_UTILISATIONREL, XML_UTILISATIONTYPE, XML_WARNING, XML_WORKLOAD, XSDDatatypes_Boolean, XSDDatatypes_DateTime, XSDDatatypes_Double, XSDDatatypes_Duration, XSDDatatypes_Int, XSDDatatypes_Long, XSDDatatypes_String
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
addString2Map(java.lang.String key,
java.lang.String value,
java.util.Map<java.lang.String,java.lang.String> map,
java.lang.String separator)
adds a value to a map at given key if a previous value at given key
already exists, a separator and the new value will be added
|
static java.lang.String |
attribute2String(Attribute a) |
static java.lang.String |
capitalize(java.lang.String word)
Transforms a string's first character to upper case
|
static java.lang.String |
copy(java.lang.String s,
int n)
copy String n times
|
static java.lang.String |
date2String(java.util.Date date,
java.lang.String pattern) |
static java.lang.String |
date2String(java.util.Date date,
java.lang.String pattern,
java.util.TimeZone timeZone) |
static java.lang.Object |
deepCopy(java.lang.Object o)
creates deep copy of serializable object
see http://www.tutego.de/java/articles/Tiefe-Objektkopien-Java.html
|
static java.lang.String |
document2String(Document doc,
boolean formatted) |
static int |
duration2Minutes(javax.xml.datatype.Duration d)
converts duration, e.g.
|
static java.lang.String |
element2String(Element elem,
boolean formatted) |
static java.lang.String |
elements2String(java.util.List<Element> elems,
boolean formatted) |
static java.lang.String |
encodeData(java.util.Map<java.lang.String,java.lang.Object[]> params)
Encodes parameter values for HTTP transport copy of @see
org.yawlfoundation.yawl.engine.interfce.Interface_Client.encodeData
|
static boolean |
equals(java.lang.Object o1,
java.lang.Object o2) |
static java.lang.String |
extractCaseId(java.lang.String input) |
static java.lang.String |
getCSV(java.util.Collection list)
returns comma separated list of objects
|
static java.lang.String |
getCSV(java.util.Collection list,
int maxLength)
returns comma separated list of objects
|
static java.lang.Object |
getJsCalendarFormat(java.lang.String localizedString)
calendar format for JS_Calendar in javascript format
|
static java.lang.String |
getJSON(java.util.List<java.lang.String> list)
serialize String values in JSON format
|
static java.lang.String |
getJSON(java.util.List<java.lang.String> sortedList,
java.util.Map<java.lang.String,java.lang.Object> map)
serialize String keys and String values in JSON format, sort keys
according to order in sortedList
|
static java.lang.String |
getJSON(java.util.Map<java.lang.String,java.lang.Object> map)
serialize String keys and String values in JSON format
|
static java.lang.String |
getJSON(java.lang.String[] array)
serialize String values in JSON format
|
static java.lang.String |
getLogRequestParameters(java.util.Map<java.lang.String,java.lang.Object> parameterMap) |
static java.lang.String |
getLogSessionAttributes(javax.servlet.http.HttpSession session) |
static long |
getMedian(java.util.List<java.lang.Long> values) |
static boolean |
isEqual(java.lang.Object o1,
java.lang.Object o2)
compares two objects
|
static java.lang.String[] |
jsonObject2Array(java.lang.Object json) |
static java.util.List<java.lang.String> |
parseCSV(java.lang.String csv) |
static java.util.List<java.lang.String> |
parseCSV(java.lang.String csv,
java.lang.String delimiters) |
static java.lang.String[] |
parseJSON2Array(java.lang.String json) |
static java.util.Map<java.lang.String,java.lang.String> |
parseJSON2Map(java.lang.String json) |
static java.lang.String |
sendRequest(java.lang.String urlStr,
java.util.Map<java.lang.String,java.lang.Object[]> parameters)
possible charsets: UTF-8, ISO-8859-1, US-ASCII, UTF-16, UTF-16BE, UTF-16LE
|
static java.util.Date |
string2Date(java.lang.String date,
java.lang.String pattern) |
static Document |
string2Document(java.lang.String s) |
static Element |
string2Element(java.lang.String s) |
static java.util.List<Element> |
string2Elements(java.lang.String s) |
static java.lang.String |
stringMinutes2stringXMLDuration(java.lang.String minutes)
converts minute string x to lexical representation of duration
|
static javax.xml.datatype.Duration |
stringXML2Duration(java.lang.String lexicalRepresentation) |
static java.lang.String |
stringXMLDuration2stringMinutes(java.lang.String value)
converts duration, e.g.
|
static java.lang.String |
toString(java.lang.Object o) |
static java.lang.String |
truncate(java.lang.String s,
int i)
truncate String s to length i, if s > i, the last 3 characters will be
replace by ...
|
public static final java.lang.String TIME_PATTERN_XML
public static final java.lang.String DATE_PATTERN_XML
public static final java.lang.String DATETIME_PATTERN_XML
public static final java.lang.String TIME_PATTERN
public static final java.lang.String DATE_PATTERN
public static final java.lang.String DATETIME_PATTERN
public static java.lang.String getCSV(java.util.Collection list)
list
- public static java.lang.String getCSV(java.util.Collection list, int maxLength)
list
- maxLength
- public static java.lang.String truncate(java.lang.String s, int i)
s
- i
- public static java.lang.String copy(java.lang.String s, int n)
s
- n
- public static long getMedian(java.util.List<java.lang.Long> values)
public static java.lang.String toString(java.lang.Object o)
public static java.lang.String date2String(java.util.Date date, java.lang.String pattern, java.util.TimeZone timeZone)
public static java.lang.String date2String(java.util.Date date, java.lang.String pattern)
public static java.util.Date string2Date(java.lang.String date, java.lang.String pattern) throws java.text.ParseException
java.text.ParseException
public static java.lang.String stringMinutes2stringXMLDuration(java.lang.String minutes) throws javax.xml.datatype.DatatypeConfigurationException
minutes
- javax.xml.datatype.DatatypeConfigurationException
public static java.lang.String stringXMLDuration2stringMinutes(java.lang.String value)
value
- public static int duration2Minutes(javax.xml.datatype.Duration d)
d
- public static javax.xml.datatype.Duration stringXML2Duration(java.lang.String lexicalRepresentation) throws javax.xml.datatype.DatatypeConfigurationException
javax.xml.datatype.DatatypeConfigurationException
public static java.lang.String elements2String(java.util.List<Element> elems, boolean formatted)
public static java.lang.String document2String(Document doc, boolean formatted)
public static java.lang.String element2String(Element elem, boolean formatted)
public static java.lang.String attribute2String(Attribute a)
public static Document string2Document(java.lang.String s)
s
- public static Element string2Element(java.lang.String s)
public static java.util.List<Element> string2Elements(java.lang.String s)
public static void addString2Map(java.lang.String key, java.lang.String value, java.util.Map<java.lang.String,java.lang.String> map, java.lang.String separator)
key
- value
- map
- separator
- public static java.lang.String getJSON(java.util.List<java.lang.String> list) throws java.lang.Exception
list
- java.lang.Exception
public static java.lang.String getJSON(java.util.Map<java.lang.String,java.lang.Object> map) throws java.lang.Exception
map
- java.lang.Exception
public static java.lang.String getJSON(java.util.List<java.lang.String> sortedList, java.util.Map<java.lang.String,java.lang.Object> map) throws java.lang.Exception
map
- java.lang.Exception
public static java.lang.String getJSON(java.lang.String[] array) throws java.lang.Exception
array
- java.lang.Exception
public static java.lang.String[] jsonObject2Array(java.lang.Object json) throws org.json.JSONException
org.json.JSONException
public static java.lang.String[] parseJSON2Array(java.lang.String json) throws org.json.JSONException
org.json.JSONException
public static java.util.Map<java.lang.String,java.lang.String> parseJSON2Map(java.lang.String json) throws org.json.JSONException
org.json.JSONException
public static java.util.List<java.lang.String> parseCSV(java.lang.String csv)
csv
- public static java.util.List<java.lang.String> parseCSV(java.lang.String csv, java.lang.String delimiters)
csv
- public static java.lang.String encodeData(java.util.Map<java.lang.String,java.lang.Object[]> params)
params
- a map of the data parameter values, of the form
[param1=value1],[param2=value2]...public static java.lang.String capitalize(java.lang.String word)
word
- public static boolean isEqual(java.lang.Object o1, java.lang.Object o2)
o1
- o2
- public static java.lang.String getLogRequestParameters(java.util.Map<java.lang.String,java.lang.Object> parameterMap)
public static java.lang.String getLogSessionAttributes(javax.servlet.http.HttpSession session)
public static java.lang.String sendRequest(java.lang.String urlStr, java.util.Map<java.lang.String,java.lang.Object[]> parameters) throws java.lang.Exception
urlStr
- parameters
- java.lang.Exception
public static java.lang.Object getJsCalendarFormat(java.lang.String localizedString)
localizedString
- public static boolean equals(java.lang.Object o1, java.lang.Object o2)
public static java.lang.String extractCaseId(java.lang.String input)
public static java.lang.Object deepCopy(java.lang.Object o) throws java.lang.Exception
o
- java.lang.Exception
Copyright © 2004-2014 The YAWL Foundation.