Package dev.cdevents.constants
Enum CDEventConstants.SubjectType
- java.lang.Object
-
- java.lang.Enum<CDEventConstants.SubjectType>
-
- dev.cdevents.constants.CDEventConstants.SubjectType
-
- All Implemented Interfaces:
Serializable,Comparable<CDEventConstants.SubjectType>
- Enclosing class:
- CDEventConstants
public static enum CDEventConstants.SubjectType extends Enum<CDEventConstants.SubjectType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARTIFACTsubject type artifact.BRANCHSubject type branch.BUILDSubject type build.CHANGESubject type change.ENVIRONMENTSubject Type Environment.PIPELINERUNSubject Type pipelineRun.REPOSITORYSubject type repository.SERVICESubject Type Service.TASKRUNSubject type taskRun.TESTCASEsubject type testCase.TESTSUITEsubject type testSuite.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSubjectType()voidsetSubjectType(String subjectType)static CDEventConstants.SubjectTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CDEventConstants.SubjectType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPOSITORY
public static final CDEventConstants.SubjectType REPOSITORY
Subject type repository.
-
TASKRUN
public static final CDEventConstants.SubjectType TASKRUN
Subject type taskRun.
-
PIPELINERUN
public static final CDEventConstants.SubjectType PIPELINERUN
Subject Type pipelineRun.
-
ENVIRONMENT
public static final CDEventConstants.SubjectType ENVIRONMENT
Subject Type Environment.
-
SERVICE
public static final CDEventConstants.SubjectType SERVICE
Subject Type Service.
-
BRANCH
public static final CDEventConstants.SubjectType BRANCH
Subject type branch.
-
CHANGE
public static final CDEventConstants.SubjectType CHANGE
Subject type change.
-
BUILD
public static final CDEventConstants.SubjectType BUILD
Subject type build.
-
TESTCASE
public static final CDEventConstants.SubjectType TESTCASE
subject type testCase.
-
TESTSUITE
public static final CDEventConstants.SubjectType TESTSUITE
subject type testSuite.
-
ARTIFACT
public static final CDEventConstants.SubjectType ARTIFACT
subject type artifact.
-
-
Method Detail
-
values
public static CDEventConstants.SubjectType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CDEventConstants.SubjectType c : CDEventConstants.SubjectType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CDEventConstants.SubjectType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getSubjectType
public String getSubjectType()
- Returns:
- subjectType
-
setSubjectType
public void setSubjectType(String subjectType)
- Parameters:
subjectType-
-
-