Class ObjectGraphImpl
java.lang.Object
org.glassfish.jersey.message.filtering.ObjectGraphImpl
- All Implemented Interfaces:
ObjectGraph
Default implementation of
ObjectGraph.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Class<?>, EntityGraph> private final EntityGraphprivate Map<String, ObjectGraph> -
Constructor Summary
ConstructorsConstructorDescriptionObjectGraphImpl(Map<Class<?>, EntityGraph> classToGraph, EntityGraph graph, Set<String> filteringScopes) -
Method Summary
Modifier and TypeMethodDescriptionClass<?> Get entity domain class of this graph.Get a set of all simple (non-filterable) fields of entity class.Get fields with the given parent path.getFilteringScopes(String parent) Get a map of all further-filterable fields of entity class.getSubgraphs(String parent) Get subgraphs with the given parent path.
-
Field Details
-
filteringScopes
-
classToGraph
-
graph
-
fields
-
subgraphs
-
-
Constructor Details
-
ObjectGraphImpl
ObjectGraphImpl(Map<Class<?>, EntityGraph> classToGraph, EntityGraph graph, Set<String> filteringScopes)
-
-
Method Details
-
getEntityClass
Description copied from interface:ObjectGraphGet entity domain class of this graph.- Specified by:
getEntityClassin interfaceObjectGraph- Returns:
- entity domain class.
-
getFields
Description copied from interface:ObjectGraphGet a set of all simple (non-filterable) fields of entity class. Value of each of these fields is either primitive or the entity-filtering feature cannot be applied to this field. Values of these fields can be directly processed.- Specified by:
getFieldsin interfaceObjectGraph- Returns:
- non-filterable fields.
-
getFields
Description copied from interface:ObjectGraphGet fields with the given parent path. The parent path, which may exist in the requested filtering scopes, is used for context to match against the field at the subgraph level.- Specified by:
getFieldsin interfaceObjectGraph- Parameters:
parent- name of parent field.- Returns:
- non-filterable fields.
-
getSubgraphs
Description copied from interface:ObjectGraphGet a map of all further-filterable fields of entity class. Mappings are represented as:<field> -> <object-graph>
It is supposed that object graphs contained in this map would be processed further.- Specified by:
getSubgraphsin interfaceObjectGraph- Returns:
- further-filterable map of fields.
-
getSubgraphs
Description copied from interface:ObjectGraphGet subgraphs with the given parent path. The parent path, which may exist in the requested filtering scopes, is used for context to match against the subgraph level.- Specified by:
getSubgraphsin interfaceObjectGraph- Parameters:
parent- name of parent field.- Returns:
- further-filterable map of fields.
-
getFilteringScopes
-