Enum CloudEvents
- java.lang.Object
-
- java.lang.Enum<CloudEvents>
-
- org.apache.camel.component.knative.spi.CloudEvents
-
- All Implemented Interfaces:
Serializable
,Comparable<CloudEvents>
,CloudEvent
public enum CloudEvents extends Enum<CloudEvents> implements CloudEvent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.camel.component.knative.spi.CloudEvent
CloudEvent.Attribute
-
-
Field Summary
-
Fields inherited from interface org.apache.camel.component.knative.spi.CloudEvent
CAMEL_CLOUD_EVENT_CONTENT_TYPE, CAMEL_CLOUD_EVENT_DATA_CONTENT_ENCODING, CAMEL_CLOUD_EVENT_DATA_CONTENT_TYPE, CAMEL_CLOUD_EVENT_EXTENSIONS, CAMEL_CLOUD_EVENT_ID, CAMEL_CLOUD_EVENT_SCHEMA_URL, CAMEL_CLOUD_EVENT_SOURCE, CAMEL_CLOUD_EVENT_SUBJECT, CAMEL_CLOUD_EVENT_TIME, CAMEL_CLOUD_EVENT_TYPE, CAMEL_CLOUD_EVENT_TYPE_VERSION, CAMEL_CLOUD_EVENT_VERSION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<CloudEvent.Attribute>
attributes()
List of supported attributes.static CloudEvent
fromSpecVersion(String version)
static CloudEvents
valueOf(String name)
Returns the enum constant of this type with the specified name.static CloudEvents[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.String
version()
The CloudEvent spec version.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.apache.camel.component.knative.spi.CloudEvent
attribute, mandatoryAttribute
-
-
-
-
Enum Constant Detail
-
v0_1
public static final CloudEvents v0_1
-
v0_2
public static final CloudEvents v0_2
-
v0_3
public static final CloudEvents v0_3
-
v1_0
public static final CloudEvents v1_0
-
-
Method Detail
-
values
public static CloudEvents[] 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 (CloudEvents c : CloudEvents.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CloudEvents 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
-
version
public String version()
Description copied from interface:CloudEvent
The CloudEvent spec version.- Specified by:
version
in interfaceCloudEvent
-
attributes
public Collection<CloudEvent.Attribute> attributes()
Description copied from interface:CloudEvent
List of supported attributes.- Specified by:
attributes
in interfaceCloudEvent
-
fromSpecVersion
public static CloudEvent fromSpecVersion(String version)
-
-