Class EmptyEntityGraphImpl
java.lang.Object
org.glassfish.jersey.message.filtering.EmptyEntityGraphImpl
- All Implemented Interfaces:
EntityGraph
EntityGraph implementation that does not contain any fields/subgraphs. Methods that are supposed to modify the graph
would throw an UnsupportedOperationException.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a field into this graph for all existing entity-filtering scopes.Add a field into this graph for given list of entity-filtering scopes.Add a field into this graph for given set of entity-filtering scopes.addFilteringScopes(Set<String> filteringScopes) Add a set of entity-filtering scopes to this graph.addSubgraph(String fieldName, Class<?> fieldClass) Add a subgraph into this graph for all existing entity-filtering scopes.addSubgraph(String fieldName, Class<?> fieldClass, String... filteringScopes) Add a subgraph into this graph for given list of entity-filtering scopes.addSubgraph(String fieldName, Class<?> fieldClass, Set<String> filteringScopes) Add a subgraph into this graph for given set of entity-filtering scopes.booleanGet all available entity-filtering scopes defined on a class.Class<?> Get an entity class this graph is created for.Get fields for given entity-filtering scope.Get fields for given entity-filtering scopes.Get fields for given entity-filtering scopes.Get all available entity-filtering scopes.getSubgraphs(String filteringScope) Get subgraphs for given entity-filtering scope.getSubgraphs(String... filteringScopes) Get subgraphs for given entity-filtering scopes.getSubgraphs(Set<String> filteringScopes) Get subgraphs for given entity-filtering scopes.inthashCode()booleanpresentInScope(String field, String filteringScope) Determines whether a field/subgraph is present in ANY of the given scopes.booleanpresentInScopes(String field) Determines whether a field/subgraph is present in ANY of the existing scopes.Remove a field/subgraph from the graph (all entity-filtering scopes).
-
Field Details
-
clazz
-
-
Constructor Details
-
EmptyEntityGraphImpl
EmptyEntityGraphImpl(Class<?> clazz)
-
-
Method Details
-
addField
Description copied from interface:EntityGraphAdd a field into this graph for all existing entity-filtering scopes.- Specified by:
addFieldin interfaceEntityGraph- Parameters:
fieldName- name of the field to be added.- Returns:
- an entity-filtering graph instance.
-
addField
Description copied from interface:EntityGraphAdd a field into this graph for given list of entity-filtering scopes.- Specified by:
addFieldin interfaceEntityGraph- Parameters:
fieldName- name of the field to be added.filteringScopes- entity-filtering scopes for the field.- Returns:
- an entity-filtering graph instance.
-
addField
Description copied from interface:EntityGraphAdd a field into this graph for given set of entity-filtering scopes.- Specified by:
addFieldin interfaceEntityGraph- Parameters:
fieldName- name of the field to be added.filteringScopes- entity-filtering scopes for the field.- Returns:
- an entity-filtering graph instance.
-
addSubgraph
Description copied from interface:EntityGraphAdd a subgraph into this graph for all existing entity-filtering scopes.- Specified by:
addSubgraphin interfaceEntityGraph- Parameters:
fieldName- name of the subgraph field to be added.fieldClass- entity class representing the subgraph.- Returns:
- an entity-filtering graph instance.
-
addSubgraph
Description copied from interface:EntityGraphAdd a subgraph into this graph for given list of entity-filtering scopes.- Specified by:
addSubgraphin interfaceEntityGraph- Parameters:
fieldName- name of the subgraph field to be added.fieldClass- entity class representing the subgraph.filteringScopes- entity-filtering scopes for the subgraph.- Returns:
- an entity-filtering graph instance.
-
addSubgraph
Description copied from interface:EntityGraphAdd a subgraph into this graph for given set of entity-filtering scopes.- Specified by:
addSubgraphin interfaceEntityGraph- Parameters:
fieldName- name of the subgraph field to be added.fieldClass- entity class representing the subgraph.filteringScopes- entity-filtering scopes for the subgraph.- Returns:
- an entity-filtering graph instance.
-
getEntityClass
Description copied from interface:EntityGraphGet an entity class this graph is created for.- Specified by:
getEntityClassin interfaceEntityGraph- Returns:
- an entity class.
-
getFields
Description copied from interface:EntityGraphGet fields for given entity-filtering scope.- Specified by:
getFieldsin interfaceEntityGraph- Parameters:
filteringScope- scope the returned fields have to be in.- Returns:
- set of fields present in given scope.
-
getFields
Description copied from interface:EntityGraphGet fields for given entity-filtering scopes.- Specified by:
getFieldsin interfaceEntityGraph- Parameters:
filteringScopes- scopes the returned fields have to be in.- Returns:
- set of fields present in given scopes.
-
getFields
Description copied from interface:EntityGraphGet fields for given entity-filtering scopes.- Specified by:
getFieldsin interfaceEntityGraph- Parameters:
filteringScopes- scopes the returned fields have to be in.- Returns:
- set of fields present in given scopes.
-
getSubgraphs
Description copied from interface:EntityGraphGet subgraphs for given entity-filtering scope.- Specified by:
getSubgraphsin interfaceEntityGraph- Parameters:
filteringScope- scope the returned subgraphs have to be in.- Returns:
- map of subgraphs present in given scope.
-
getSubgraphs
Description copied from interface:EntityGraphGet subgraphs for given entity-filtering scopes.- Specified by:
getSubgraphsin interfaceEntityGraph- Parameters:
filteringScopes- scopes the returned subgraphs have to be in.- Returns:
- map of subgraphs present in given scopes.
-
getSubgraphs
Description copied from interface:EntityGraphGet subgraphs for given entity-filtering scopes.- Specified by:
getSubgraphsin interfaceEntityGraph- Parameters:
filteringScopes- scopes the returned subgraphs have to be in.- Returns:
- map of subgraphs present in given scopes.
-
presentInScopes
Description copied from interface:EntityGraphDetermines whether a field/subgraph is present in ANY of the existing scopes.- Specified by:
presentInScopesin interfaceEntityGraph- Parameters:
field- field to be checked.- Returns:
trueif field is present in ANY of the existing scopes,falseotherwise.
-
presentInScope
Description copied from interface:EntityGraphDetermines whether a field/subgraph is present in ANY of the given scopes. If no scopes are given the return value determines whether the field is present in any scope.- Specified by:
presentInScopein interfaceEntityGraph- Parameters:
field- field to be checked.filteringScope- entity-filtering scope.- Returns:
trueif field is present in the given scope,falseotherwise.
-
remove
Description copied from interface:EntityGraphRemove a field/subgraph from the graph (all entity-filtering scopes).- Specified by:
removein interfaceEntityGraph- Parameters:
name- name of the field/subgraph to be removed.- Returns:
- an entity-filtering graph instance.
-
getFilteringScopes
Description copied from interface:EntityGraphGet all available entity-filtering scopes.- Specified by:
getFilteringScopesin interfaceEntityGraph- Returns:
- all available entity-filtering scopes.
-
getClassFilteringScopes
Description copied from interface:EntityGraphGet all available entity-filtering scopes defined on a class.- Specified by:
getClassFilteringScopesin interfaceEntityGraph- Returns:
- all available entity-filtering scopes.
-
addFilteringScopes
Description copied from interface:EntityGraphAdd a set of entity-filtering scopes to this graph.- Specified by:
addFilteringScopesin interfaceEntityGraph- Parameters:
filteringScopes- entity-filtering scopes to be added.- Returns:
- an entity-filtering graph instance.
-
equals
-
hashCode
public int hashCode()
-