Package io.apicurio.datamodels.refs
Enum ResolvedReference.ResolvedReferenceType
- java.lang.Object
-
- java.lang.Enum<ResolvedReference.ResolvedReferenceType>
-
- io.apicurio.datamodels.refs.ResolvedReference.ResolvedReferenceType
-
- All Implemented Interfaces:
Serializable,Comparable<ResolvedReference.ResolvedReferenceType>
- Enclosing class:
- ResolvedReference
public static enum ResolvedReference.ResolvedReferenceType extends Enum<ResolvedReference.ResolvedReferenceType>
Enumeration of the types of content that can be contained in aResolvedReference.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResolvedReference.ResolvedReferenceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ResolvedReference.ResolvedReferenceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NODE
public static final ResolvedReference.ResolvedReferenceType NODE
Content is anNode(OpenAPI or AsyncAPI document/component).
-
JSON
public static final ResolvedReference.ResolvedReferenceType JSON
Content is aJsonNode(JSON/YAML that isn't OpenAPI/AsyncAPI).
-
TEXT
public static final ResolvedReference.ResolvedReferenceType TEXT
Content is a String (non-JSON content like Protocol Buffers, GraphQL, Avro text, etc.).
-
-
Method Detail
-
values
public static ResolvedReference.ResolvedReferenceType[] 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 (ResolvedReference.ResolvedReferenceType c : ResolvedReference.ResolvedReferenceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResolvedReference.ResolvedReferenceType 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
-
-