public class WatchEvent extends Object
Constructor and Description |
---|
WatchEvent(String sName,
String sDesc,
String sExp)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAlert(Alert oAlert)
add an alert action to list
|
ArrayList |
getAlertList()
get list of alert list
|
String |
getDesc()
get description
|
Matcher |
getMatcher()
include matcher results
|
String |
getName()
get name
|
String |
getRegExp()
get regular expression
|
void |
setDesc(String sDesc)
set the description
|
void |
setMatcher(Matcher m)
include matcher results
|
void |
setName(String sName)
set the name
|
void |
setRegExp(String sExp)
set the regular expression
|
public void addAlert(Alert oAlert)
oAlert
- Alert object e.g. <Alert type="visual" src="image/mine.gif"/>
<Alert type="url" src="http://www.nps.navy.mil"/>
<Alert type="sound" src="sound/beep.au"/>public ArrayList getAlertList()
public String getDesc()
public void setDesc(String sDesc)
sDesc
- a String expressionpublic String getName()
public void setName(String sName)
sName
- a String expressionpublic String getRegExp()
public void setRegExp(String sExp)
sExp
- a String expressionpublic Matcher getMatcher()
public void setMatcher(Matcher m)
m
- a regular expression matcher