public class EventUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
defaultCategory |
static java.lang.String |
defaultName |
static java.lang.String |
defaultSite |
static java.lang.String |
defaultType |
static java.lang.String |
FILE_SEPARATOR |
static java.lang.String |
LINE_SEPARATOR |
Constructor and Description |
---|
EventUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
collectible(Event event) |
static java.lang.String |
collectible(Event event,
java.util.Map change)
It returns a formatted string of the event in the collectible format.
|
static java.lang.String |
compact(Event event) |
static java.lang.String |
compact(Event event,
java.util.Map change)
It returns a formatted string of the event in the compact format.
|
static Event |
duplicate(Event event) |
static java.lang.String |
format(Event event,
Template template)
returns a formatted string of the event with a given template
|
static java.lang.String |
format(Event event,
Template template,
java.util.Map subMap)
returns a formatted string of the event with a given template
and a set of substitutions
|
static java.util.Map<java.lang.String,java.lang.Object> |
getChange(Event event,
TextSubstitution[] sub)
returns a Map contains changes only from the substitution
|
static TextSubstitution[] |
initSubstitutions(java.util.List sub)
returns an array of TextSubstitution for a list of maps for Sub
|
static java.lang.String |
postable(Event event) |
static java.lang.String |
postable(Event event,
java.util.Map change)
It returns a formatted string of the event in the postable format.
|
static java.lang.String |
pretty(Event event) |
static java.lang.String |
pretty(Event event,
java.util.Map change)
It returns a formatted string of the event in the compact format.
|
static Event |
runScript(java.lang.String program,
int timeout)
runs a script within the timeout and return an event.
|
static java.lang.String |
substitute(java.lang.String input,
Template template) |
static java.lang.String |
substitute(java.lang.String input,
Template template,
java.util.Map map) |
public static final java.lang.String LINE_SEPARATOR
public static final java.lang.String FILE_SEPARATOR
public static final java.lang.String defaultName
public static final java.lang.String defaultSite
public static final java.lang.String defaultCategory
public static final java.lang.String defaultType
public static java.lang.String pretty(Event event)
public static java.lang.String pretty(Event event, java.util.Map change)
public static java.lang.String compact(Event event)
public static java.lang.String compact(Event event, java.util.Map change)
public static java.lang.String postable(Event event)
public static java.lang.String postable(Event event, java.util.Map change)
public static java.lang.String collectible(Event event)
public static java.lang.String collectible(Event event, java.util.Map change)
public static TextSubstitution[] initSubstitutions(java.util.List sub)
public static java.util.Map<java.lang.String,java.lang.Object> getChange(Event event, TextSubstitution[] sub)
public static java.lang.String format(Event event, Template template)
public static java.lang.String format(Event event, Template template, java.util.Map subMap)
public static Event runScript(java.lang.String program, int timeout)
public static java.lang.String substitute(java.lang.String input, Template template)
public static java.lang.String substitute(java.lang.String input, Template template, java.util.Map map)