Package org.forgerock.openig.mcp
Enum Class McpVersion
- All Implemented Interfaces:
Serializable,Comparable<McpVersion>,Constable
An Enum of all the supported versions of the MCP Protocol Schema.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic McpVersionReturns the earliest supported version.static McpVersionReturns the latest supported version.Return aNamedJsonSchemafor the given definition and name.toString()static McpVersionReturns the enum constant of this class with the specified name.static McpVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
v2025_06_18
-
v2025_11_25
-
-
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
-
schema
Return aNamedJsonSchemafor the given definition and name.- Parameters:
definition- The definition to use when looking up the schema.name- The name to use.- Returns:
- A
NamedJsonSchemafor the given definition and name.
-
toString
- Overrides:
toStringin classEnum<McpVersion>
-
earliestSupportedVersion
Returns the earliest supported version.- Returns:
- the earliest supported version
-
latestSupportedVersion
Returns the latest supported version.- Returns:
- the latest supported version
-