public static enum RestProperty.Scope extends Enum<RestProperty.Scope>
| Enum Constant and Description |
|---|
AUTO
if the field name is
self or expand then RESPONSE, otherwise BOTH |
BOTH
for fields available in requests and in responses
|
REQUEST
for fields available only in requests
|
RESPONSE
for fields available only in responses
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(RestProperty.Scope scope) |
boolean |
includes(RestProperty.Scope fieldScope,
String fieldName) |
static RestProperty.Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestProperty.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestProperty.Scope REQUEST
public static final RestProperty.Scope RESPONSE
public static final RestProperty.Scope BOTH
public static final RestProperty.Scope AUTO
self or expand then RESPONSE, otherwise BOTHpublic static RestProperty.Scope[] values()
for (RestProperty.Scope c : RestProperty.Scope.values()) System.out.println(c);
public static RestProperty.Scope valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean contains(RestProperty.Scope scope)
public boolean includes(RestProperty.Scope fieldScope, String fieldName)
Copyright © 2017 Atlassian. All rights reserved.