public static class LinkRelationProvider.LookupContext extends Object
LinkRelationProvider selection context for item resource relation lookups
(forItemResourceRelLookup(Class), collection resource relation lookups
forCollectionResourceRelLookup(Class) or both forType(Class).| Constructor and Description |
|---|
LookupContext() |
| Modifier and Type | Method and Description |
|---|---|
static LinkRelationProvider.LookupContext |
forCollectionResourceRelLookup(Class<?> type)
Creates a
LinkRelationProvider.LookupContext to lookup the collection resource relation for the given type. |
static LinkRelationProvider.LookupContext |
forItemResourceRelLookup(Class<?> type)
Creates a
LinkRelationProvider.LookupContext to lookup the item resource relation for the given type. |
static LinkRelationProvider.LookupContext |
forType(Class<?> type)
Creates a
LinkRelationProvider.LookupContext for the type in general, i.e. both item and collection relation lookups. |
boolean |
handlesType(Class<?> type)
Returns whether the lookup is executed for the given type.
|
boolean |
isCollectionRelationLookup()
Returns whether the current context includes the collection relation lookup.
|
boolean |
isItemRelationLookup()
Returns whether the current context includes the item relation lookup.
|
String |
toString() |
public static LinkRelationProvider.LookupContext forType(Class<?> type)
LinkRelationProvider.LookupContext for the type in general, i.e. both item and collection relation lookups.type - must not be null.public static LinkRelationProvider.LookupContext forItemResourceRelLookup(Class<?> type)
LinkRelationProvider.LookupContext to lookup the item resource relation for the given type.type - must not be null.public static LinkRelationProvider.LookupContext forCollectionResourceRelLookup(Class<?> type)
LinkRelationProvider.LookupContext to lookup the collection resource relation for the given type.type - must not be null.public boolean isItemRelationLookup()
public boolean isCollectionRelationLookup()
public boolean handlesType(Class<?> type)
type - must not be null.Copyright © 2011–2020 Pivotal, Inc.. All rights reserved.