public class EventFormatter extends Template implements EventTemplate
| Constructor and Description |
|---|
EventFormatter(boolean filize) |
EventFormatter(org.w3c.dom.Element config) |
EventFormatter(org.w3c.dom.Element config,
boolean filize) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(double d) |
static EventFormatter |
getDefaultFormatter() |
static java.lang.String |
getDefaultResult(CacheEvent event) |
java.lang.String |
getFilizedName(CacheEvent event) |
static java.lang.String |
getMag(CacheEvent event) |
static Origin |
getOrigin(CacheEvent event) |
static java.lang.String |
getRegionName(CacheEvent event) |
java.lang.String |
getResult(CacheEvent event) |
protected java.lang.Object |
getTemplate(java.lang.String tag,
org.w3c.dom.Element el)
if this class has an template for this tag, it creates it using the
passed in element and returns it.
|
static EventFormatter |
makeFilizer() |
static EventFormatter |
makeTime() |
protected java.lang.Object |
textTemplate(java.lang.String text)
returns an object of the template type that this class uses, and returns
the passed in text when the getResult method of that template type is
called
|
void |
useDefaultConfig() |
getCommonTemplate, parse, parse, setUppublic EventFormatter(boolean filize)
throws ConfigurationException
ConfigurationExceptionpublic EventFormatter(org.w3c.dom.Element config)
throws ConfigurationException
ConfigurationExceptionpublic EventFormatter(org.w3c.dom.Element config,
boolean filize)
throws ConfigurationException
ConfigurationExceptionpublic static EventFormatter makeTime()
public static EventFormatter makeFilizer()
public static EventFormatter getDefaultFormatter()
public static java.lang.String getDefaultResult(CacheEvent event)
protected java.lang.Object textTemplate(java.lang.String text)
TemplatetextTemplate in class Templateprotected java.lang.Object getTemplate(java.lang.String tag,
org.w3c.dom.Element el)
TemplategetTemplate in class Templatepublic static java.lang.String format(double d)
public void useDefaultConfig()
public java.lang.String getResult(CacheEvent event)
getResult in interface EventTemplatepublic java.lang.String getFilizedName(CacheEvent event)
public static java.lang.String getMag(CacheEvent event)
public static Origin getOrigin(CacheEvent event)
public static java.lang.String getRegionName(CacheEvent event)