|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.zion.jbuddy.bots.BotTarget
public class BotTarget
A group of calls executed by the engine in response to an event.
Targets can be triggered directly by commands from users. They can be
called from event handlers
or other targets. They
can also be organized using menus
.
BotEventHandler
,
BotMenu
Constructor Summary | |
---|---|
BotTarget()
Creates a target. |
Method Summary | |
---|---|
Object |
clone()
Returns an exact copy of this target. |
BotCallSet |
getCalls()
Returns the calls executed by this target. |
String |
getCommand()
Returns the command used to trigger this target. |
BotFilterSet |
getFilters()
Returns this target's filters. |
String |
getID()
Returns this target's identifier. |
BotRouteSet |
getRoutes()
Returns this target's routes. |
RichContent |
getTitle()
Returns this target's title. |
boolean |
isDefault()
Returns true if this is a default target. |
void |
setCommand(String command)
Sets the command used to trigger this target. |
void |
setDefault(boolean isDefault)
Sets whether this is a default target. |
void |
setID(String id)
Sets this target's identifier, which can be used by other targets to reference this target (with the ref attribute). |
void |
setTitle(RichContent title)
Sets this target's title. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BotTarget()
Method Detail |
---|
public RichContent getTitle()
public void setTitle(RichContent title)
public String getCommand()
public void setCommand(String command)
A target's calls are executed when a user types its command.
public boolean isDefault()
public void setDefault(boolean isDefault)
If a user command doesn't match any existing targets, and there is a default target specified, the default target is triggered.
public String getID()
public void setID(String id)
ref
attribute).
public BotCallSet getCalls()
public BotFilterSet getFilters()
If the filters do not allow a certain message or event, this target will not be triggered, nor will it show up inside any menus.
public BotRouteSet getRoutes()
This target's calls are processed for each specified route.
public Object clone()
clone
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |