public class TriggerEntry extends MapEntry implements ITriggerEntry
Note that the order of this trigger entry in the triggers table is part of the trigger entry key when pass to the server for updating the triggers table.
Triggers0 example1 change-submit //depot/... "echo %changelist%" Triggers1 example1 change-submit //depot/abc/... "echo %changelist%" Triggers2 example2 form-save client "echo %client%" Triggers3 example3 change-submit //depot/... "echo %changelist%" Triggers4 example4 change-submit //depot/... "echo %changelist%"
ITriggerEntry.TriggerType
IMapEntry.EntryType
comment, elementPattern, elementPatternStr, left, order, right, type
ORDER_UNKNOWN
Constructor and Description |
---|
TriggerEntry()
Default constructor.
|
TriggerEntry(int order,
java.lang.String name,
ITriggerEntry.TriggerType triggerType,
java.lang.String path,
java.lang.String command)
Explicit-value constructor.
|
TriggerEntry(java.lang.String triggerEntry,
int order)
Constructs a TriggerEntry from the passed-in trigger as a string and its
order.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommand()
Gets the trigger command.
|
java.lang.String |
getName()
Gets the trigger name.
|
java.lang.String |
getPath()
For change and submit triggers, a file pattern to match files in the
changelist.
|
ITriggerEntry.TriggerType |
getTriggerType()
Gets the trigger type.
|
void |
setCommand(java.lang.String command)
Sets the trigger command.
|
void |
setName(java.lang.String name)
Sets the trigger name.
|
void |
setPath(java.lang.String path)
For change and submit triggers, a file pattern to match files in the
changelist.
|
void |
setTriggerType(ITriggerEntry.TriggerType triggerType)
Sets the trigger type.
|
java.lang.String |
toString()
An alias for this.toString(" ", true).
|
getComment, getComment, getLeft, getLeft, getOrder, getRight, getRight, getType, parseComments, parseViewMappingString, quoteWhitespaceString, setComment, setLeft, setOrder, setRight, setType, stripComments, stripTypePrefix, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComment, getComment, getLeft, getLeft, getOrder, getRight, getRight, getType, setComment, setLeft, setOrder, setRight, setType, toString
public TriggerEntry()
public TriggerEntry(int order, java.lang.String name, ITriggerEntry.TriggerType triggerType, java.lang.String path, java.lang.String command)
order
- ordername
- nametriggerType
- triggerTypepath
- pathcommand
- commandpublic TriggerEntry(java.lang.String triggerEntry, int order)
triggerEntry
- triggerEntryorder
- orderpublic java.lang.String getName()
ITriggerEntry
getName
in interface ITriggerEntry
ITriggerEntry.getName()
public void setName(java.lang.String name)
ITriggerEntry
setName
in interface ITriggerEntry
name
- the trigger nameITriggerEntry.setName(java.lang.String)
public ITriggerEntry.TriggerType getTriggerType()
ITriggerEntry
getTriggerType
in interface ITriggerEntry
ITriggerEntry.getTriggerType()
public void setTriggerType(ITriggerEntry.TriggerType triggerType)
ITriggerEntry
setTriggerType
in interface ITriggerEntry
triggerType
- the trigger typeITriggerEntry.setTriggerType(com.perforce.p4java.admin.ITriggerEntry.TriggerType)
public java.lang.String getPath()
ITriggerEntry
getPath
in interface ITriggerEntry
ITriggerEntry.getPath()
public void setPath(java.lang.String path)
ITriggerEntry
setPath
in interface ITriggerEntry
path
- the depot file path pattern or form typeITriggerEntry.setPath(java.lang.String)
public java.lang.String getCommand()
ITriggerEntry
getCommand
in interface ITriggerEntry
ITriggerEntry.getCommand()
public void setCommand(java.lang.String command)
ITriggerEntry
setCommand
in interface ITriggerEntry
command
- the trigger commandITriggerEntry.setCommand(java.lang.String)