Package com.solace.serdes.common
Enum SchemaHeaderId
- java.lang.Object
-
- java.lang.Enum<SchemaHeaderId>
-
- com.solace.serdes.common.SchemaHeaderId
-
- All Implemented Interfaces:
Serializable
,Comparable<SchemaHeaderId>
public enum SchemaHeaderId extends Enum<SchemaHeaderId>
An ENUM for configuring which schema identifier to use in the serializer headers. Not used in deserialization.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SCHEMA_ID
Represents the schema identifier as along
value.SCHEMA_ID_STRING
Represents the schema identifier as aString
value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaHeaderId
valueOf(String name)
Returns the enum constant of this type with the specified name.static SchemaHeaderId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCHEMA_ID
public static final SchemaHeaderId SCHEMA_ID
Represents the schema identifier as along
value.- See Also:
ArtifactReference.getContentId()
-
SCHEMA_ID_STRING
public static final SchemaHeaderId SCHEMA_ID_STRING
Represents the schema identifier as aString
value.- See Also:
ArtifactReference.getContentId()
-
-
Method Detail
-
values
public static SchemaHeaderId[] 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 (SchemaHeaderId c : SchemaHeaderId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemaHeaderId 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
-
-