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
elementPattern, elementPatternStr, left, order, right, type
EXCLUDE_PREFIX, ORDER_UNKNOWN, OVERLAY_PREFIX
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).
|
getLeft, getLeft, getOrder, getRight, getRight, getType, parseViewMappingString, quoteWhitespaceString, setLeft, setOrder, setRight, setType, stripTypePrefix, toString
public TriggerEntry()
public TriggerEntry(int order, java.lang.String name, ITriggerEntry.TriggerType triggerType, java.lang.String path, java.lang.String command)
public TriggerEntry(java.lang.String triggerEntry, int order)
public 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
ITriggerEntry.setCommand(java.lang.String)
Copyright © 2018 Perforce Software. All Rights Reserved.