Class ObjectGraphImpl

java.lang.Object
org.glassfish.jersey.message.filtering.ObjectGraphImpl
All Implemented Interfaces:
ObjectGraph

final class ObjectGraphImpl extends Object implements ObjectGraph
Default implementation of ObjectGraph.
  • Field Details

  • Constructor Details

  • Method Details

    • getEntityClass

      public Class<?> getEntityClass()
      Description copied from interface: ObjectGraph
      Get entity domain class of this graph.
      Specified by:
      getEntityClass in interface ObjectGraph
      Returns:
      entity domain class.
    • getFields

      public Set<String> getFields()
      Description copied from interface: ObjectGraph
      Get 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:
      getFields in interface ObjectGraph
      Returns:
      non-filterable fields.
    • getFields

      public Set<String> getFields(String parent)
      Description copied from interface: ObjectGraph
      Get 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:
      getFields in interface ObjectGraph
      Parameters:
      parent - name of parent field.
      Returns:
      non-filterable fields.
    • getSubgraphs

      public Map<String,ObjectGraph> getSubgraphs()
      Description copied from interface: ObjectGraph
      Get 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:
      getSubgraphs in interface ObjectGraph
      Returns:
      further-filterable map of fields.
    • getSubgraphs

      public Map<String,ObjectGraph> getSubgraphs(String parent)
      Description copied from interface: ObjectGraph
      Get 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:
      getSubgraphs in interface ObjectGraph
      Parameters:
      parent - name of parent field.
      Returns:
      further-filterable map of fields.
    • getFilteringScopes

      private Set<String> getFilteringScopes(String parent)