|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.perforce.p4java.impl.generic.core.MapEntry
com.perforce.p4java.impl.generic.admin.TriggerEntry
public class TriggerEntry
Default ITriggerEntry implementation class.
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%"
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.perforce.p4java.admin.ITriggerEntry |
|---|
ITriggerEntry.TriggerType |
| Nested classes/interfaces inherited from interface com.perforce.p4java.core.IMapEntry |
|---|
IMapEntry.EntryType |
| Field Summary |
|---|
| Fields inherited from class com.perforce.p4java.impl.generic.core.MapEntry |
|---|
elementPattern, elementPatternStr, left, order, right, type |
| Fields inherited from interface com.perforce.p4java.core.IMapEntry |
|---|
EXCLUDE_PREFIX, ORDER_UNKNOWN, OVERLAY_PREFIX |
| Constructor Summary | |
|---|---|
TriggerEntry()
Default constructor. |
|
TriggerEntry(int order,
String name,
ITriggerEntry.TriggerType triggerType,
String path,
String command)
Explicit-value constructor. |
|
TriggerEntry(String triggerEntry,
int order)
Constructs a TriggerEntry from the passed-in trigger as a string and its order. |
|
| Method Summary | |
|---|---|
String |
getCommand()
Gets the trigger command. |
String |
getName()
Gets the trigger name. |
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(String command)
Sets the trigger command. |
void |
setName(String name)
Sets the trigger name. |
void |
setPath(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. |
String |
toString()
An alias for this.toString(" ", true). |
| Methods inherited from class com.perforce.p4java.impl.generic.core.MapEntry |
|---|
getLeft, getLeft, getOrder, getRight, getRight, getType, parseViewMappingString, quoteWhitespaceString, setLeft, setOrder, setRight, setType, stripTypePrefix, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.perforce.p4java.core.IMapEntry |
|---|
getLeft, getLeft, getOrder, getRight, getRight, getType, setLeft, setOrder, setRight, setType, toString |
| Constructor Detail |
|---|
public TriggerEntry()
public TriggerEntry(int order,
String name,
ITriggerEntry.TriggerType triggerType,
String path,
String command)
public TriggerEntry(String triggerEntry,
int order)
| Method Detail |
|---|
public String getName()
ITriggerEntry
getName in interface ITriggerEntryITriggerEntry.getName()public void setName(String name)
ITriggerEntry
setName in interface ITriggerEntryname - the trigger nameITriggerEntry.setName(java.lang.String)public ITriggerEntry.TriggerType getTriggerType()
ITriggerEntry
getTriggerType in interface ITriggerEntryITriggerEntry.getTriggerType()public void setTriggerType(ITriggerEntry.TriggerType triggerType)
ITriggerEntry
setTriggerType in interface ITriggerEntrytriggerType - the trigger typeITriggerEntry.setTriggerType(com.perforce.p4java.admin.ITriggerEntry.TriggerType)public String getPath()
ITriggerEntry
getPath in interface ITriggerEntryITriggerEntry.getPath()public void setPath(String path)
ITriggerEntry
setPath in interface ITriggerEntrypath - the depot file path pattern or form typeITriggerEntry.setPath(java.lang.String)public String getCommand()
ITriggerEntry
getCommand in interface ITriggerEntryITriggerEntry.getCommand()public void setCommand(String command)
ITriggerEntry
setCommand in interface ITriggerEntryITriggerEntry.setCommand(java.lang.String)public String toString()
MapEntry
toString in interface IMapEntrytoString in class MapEntryObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||