Enum ApiLink.SCOPE
- All Implemented Interfaces:
Serializable,Comparable<ApiLink.SCOPE>,java.lang.constant.Constable
- Enclosing class:
ApiLink
Defines the scope in which the link will be serialized in.
-
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 TypeMethodDescriptionbooleancontains(ApiLink.SCOPE scope) Determines if the current scope contains the passed in scope value.static ApiLink.SCOPEReturns the enum constant of this type with the specified name.static ApiLink.SCOPE[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
RESOURCE
The link will only be serialized as part of a main entity. -
INLINE
The link will only be serialized as part of a sub-entity. -
BOTH
The link will be serialized as part of both a main and a sub-entity.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
contains
Determines if the current scope contains the passed in scope value. If the current scope is SCOPE.BOTH true is always returned. Otherwise a direct comparison of the current scope and the passed one is done.- Parameters:
scope- The scope value to test the current scope against.- Returns:
- True is the current scope contains the passed in scope, false otherwise.
-