Package jenkins.scm.api
Enum Class SCMEvent.Type
- All Implemented Interfaces:
Serializable,Comparable<SCMEvent.Type>,Constable
The type of event.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSignifies the creation of a new thing: An existingSCMNavigatorgetting a newSCMSourcewould trigger aSCMSourceEventAn existingSCMSourcegetting a newSCMHeadwould trigger aSCMHeadEventSignifies the removal of an existing thing: An existingSCMNavigatorbeing removed would trigger aSCMNavigatorEventAn existingSCMSourcebeing removed would trigger aSCMSourceEventAn existingSCMHeadbeing removed would trigger aSCMHeadEventSignifies the update of metadata of existing thing: An existingSCMNavigator's metadata changing would trigger aSCMNavigatorEventAn existingSCMSource's metadata changing would trigger aSCMSourceEventAn existingSCMHead's metadata changing (including theSCMRevisionthat theSCMHeadpoints to) would trigger aSCMHeadEvent -
Method Summary
Modifier and TypeMethodDescriptionstatic SCMEvent.TypeReturns the enum constant of this class with the specified name.static SCMEvent.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATED
Signifies the creation of a new thing:- An existing
SCMNavigatorgetting a newSCMSourcewould trigger aSCMSourceEvent - An existing
SCMSourcegetting a newSCMHeadwould trigger aSCMHeadEvent
- An existing
-
UPDATED
Signifies the update of metadata of existing thing:- An existing
SCMNavigator's metadata changing would trigger aSCMNavigatorEvent - An existing
SCMSource's metadata changing would trigger aSCMSourceEvent - An existing
SCMHead's metadata changing (including theSCMRevisionthat theSCMHeadpoints to) would trigger aSCMHeadEvent
- An existing
-
REMOVED
Signifies the removal of an existing thing:- An existing
SCMNavigatorbeing removed would trigger aSCMNavigatorEvent - An existing
SCMSourcebeing removed would trigger aSCMSourceEvent - An existing
SCMHeadbeing removed would trigger aSCMHeadEvent
- An existing
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-