|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.monad.homerun.action.Binding
public class Binding
Binding is a base class representing an action rule
bound to a context of execution. Subclasses include
TimeBinding
(an action
bound to a specific recurring time in a schedule),
EventBinding
(an
action bound to the occurance of an event in an event plan),
and DateBinding
(an
action bound to a date in a Calendar),
Field Summary | |
---|---|
static int |
RUN_MODE
Run (execute) the action rule immediately |
static java.lang.String |
RUN_MODE_STR
|
static int |
START_MODE
Start (schedule for execution when conditions met) the action rule |
static java.lang.String |
START_MODE_STR
|
static int |
STOP_MODE
Stop (de-schedule for execution) the action rule |
static java.lang.String |
STOP_MODE_STR
|
Constructor Summary | |
---|---|
Binding()
Creates a binding with no attributes. |
|
Binding(Binding b)
Creates a binding cloned from passed binding. |
|
Binding(int mode,
java.lang.String actionName,
java.lang.String category)
Creates a binding with specified mode, name and category. |
Method Summary | |
---|---|
java.lang.String |
getActionCategory()
Returns the category of the bound action |
static java.lang.String |
getActionMode(int mode)
Returns a readable string for the mode |
java.lang.String |
getActionName()
Returns the name of the bound action rule |
int |
getMode()
Returns the binding mode |
static java.lang.String |
getModeIconName(int mode)
Returns the name of the icon for the binding mode |
static java.lang.String[] |
getModes()
Returns all modes as readable strings |
java.lang.String |
getNote()
Returns an optional note |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
|
java.lang.String |
getProperty(java.lang.String name)
Returns the value of the named property |
static int |
modeFor(java.lang.String mode)
Returns a mode for a readable string |
void |
setNote(java.lang.String note)
Sets the value of the optional note |
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> props)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Assigns a value to a property |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RUN_MODE
public static final int START_MODE
public static final int STOP_MODE
public static final java.lang.String RUN_MODE_STR
public static final java.lang.String START_MODE_STR
public static final java.lang.String STOP_MODE_STR
Constructor Detail |
---|
public Binding()
public Binding(int mode, java.lang.String actionName, java.lang.String category)
mode
- the action mode (run, start, or stop)actionName
- the name of the bond actioncategory
- the category of the action (which is its namespace)public Binding(Binding b)
b
- the binding to cloneMethod Detail |
---|
public int getMode()
public static java.lang.String getActionMode(int mode)
mode
- the mode
public static int modeFor(java.lang.String mode)
mode
- the readable string
public static java.lang.String[] getModes()
public java.lang.String getActionName()
public java.lang.String getActionCategory()
public static java.lang.String getModeIconName(int mode)
mode
- the binding mode
public java.lang.String getNote()
public void setNote(java.lang.String note)
note
- the note string valuepublic java.lang.String getProperty(java.lang.String name)
name
- the name of the propertypublic void setProperty(java.lang.String name, java.lang.String value)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> props)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |