public interface ResourceMappings extends Iterable<ResourceMetadata>
Modifier and Type | Method and Description |
---|---|
boolean |
exportsMappingFor(Class<?> type)
Returns whether we have a
ResourceMapping for the given type and it is exported. |
boolean |
exportsTopLevelResourceFor(String path)
Returns whether we export a top-level resource for the given path.
|
ResourceMetadata |
getMetadataFor(Class<?> type)
Returns a
ResourceMetadata for the given type if available. |
SearchResourceMappings |
getSearchResourceMappings(Class<?> type)
Returns the
ResourceMapping s for the search resources of the given type. |
boolean |
hasMappingFor(Class<?> type)
Returns whether we have a
ResourceMapping for the given type. |
forEach, iterator, spliterator
ResourceMetadata getMetadataFor(Class<?> type)
ResourceMetadata
for the given type if available.type
- must not be null.ResourceMetadata
if available or null otherwise.SearchResourceMappings getSearchResourceMappings(Class<?> type)
ResourceMapping
s for the search resources of the given type.type
- must not be null.boolean exportsMappingFor(Class<?> type)
ResourceMapping
for the given type and it is exported.type
- boolean exportsTopLevelResourceFor(String path)
path
- must not be null or empty.boolean hasMappingFor(Class<?> type)
ResourceMapping
for the given type.type
- must not be null.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.