@ParametersAreNonnullByDefault public enum SpecVersion extends Enum<SpecVersion>
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllAttributes() |
Set<String> |
getMandatoryAttributes() |
Set<String> |
getOptionalAttributes() |
static SpecVersion |
parse(String sv)
Parse a string as
SpecVersion |
String |
toString() |
static SpecVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpecVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpecVersion V03
public static final SpecVersion V1
public static SpecVersion[] values()
for (SpecVersion c : SpecVersion.values()) System.out.println(c);
public static SpecVersion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<SpecVersion>public static SpecVersion parse(String sv)
SpecVersionsv - String representing the spec versionCloudEventRWException - When the spec version string is unrecognizedpublic Set<String> getMandatoryAttributes()
public Set<String> getOptionalAttributes()
Copyright © 2022. All rights reserved.