Package io.smallrye.openapi.runtime.util
Enum JandexUtil.RefType
- java.lang.Object
-
- java.lang.Enum<JandexUtil.RefType>
-
- io.smallrye.openapi.runtime.util.JandexUtil.RefType
-
- All Implemented Interfaces:
Serializable
,Comparable<JandexUtil.RefType>
- Enclosing class:
- JandexUtil
public static enum JandexUtil.RefType extends Enum<JandexUtil.RefType>
Simple enum to indicate the type of a $ref being read/written.- Author:
- [email protected]
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALLBACK
EXAMPLE
HEADER
LINK
PARAMETER
REQUEST_BODY
RESPONSE
SCHEMA
SECURITY_SCHEME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JandexUtil.RefType
fromComponentPath(String path)
static JandexUtil.RefType
valueOf(String name)
Returns the enum constant of this type with the specified name.static JandexUtil.RefType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEADER
public static final JandexUtil.RefType HEADER
-
SCHEMA
public static final JandexUtil.RefType SCHEMA
-
SECURITY_SCHEME
public static final JandexUtil.RefType SECURITY_SCHEME
-
CALLBACK
public static final JandexUtil.RefType CALLBACK
-
LINK
public static final JandexUtil.RefType LINK
-
RESPONSE
public static final JandexUtil.RefType RESPONSE
-
PARAMETER
public static final JandexUtil.RefType PARAMETER
-
EXAMPLE
public static final JandexUtil.RefType EXAMPLE
-
REQUEST_BODY
public static final JandexUtil.RefType REQUEST_BODY
-
-
Method Detail
-
values
public static JandexUtil.RefType[] 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 (JandexUtil.RefType c : JandexUtil.RefType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JandexUtil.RefType 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
-
fromComponentPath
public static JandexUtil.RefType fromComponentPath(String path)
-
-