test_class.file: server/src/test/java/io/spine/server/entity/EntityVisibilityTest.java
test_class.identifier: EntityVisibilityTest
test_case.body: @Test
      @DisplayName("not accept null `Visibility` values")
      void notAcceptNulls() {
          Optional<EntityVisibility> value = EntityVisibility.of(Password.class);
          assertThat(value).isPresent();
          EntityVisibility instance = value.get();
          new NullPointerTester()
                  .testAllPublicInstanceMethods(instance);
      }
test_case.class_method_signature: EntityVisibilityTest.notAcceptNulls()
test_case.full_signature: @Test @DisplayName("not accept null `Visibility` values") void notAcceptNulls()
test_case.identifier: notAcceptNulls
test_case.invocations: of isPresent assertThat get testAllPublicInstanceMethods
test_case.modifiers: @Test @DisplayName("not accept null `Visibility` values")
test_case.parameters: ()
test_case.return: void
test_case.signature: void notAcceptNulls()
focal_class.declarator: serialVersionUID = 0L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 0L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: VISIBILITIES = buildVisibilityGraph()
focal_class.modifier: private static final
focal_class.original_string: private static final ImmutableGraph<Visibility> VISIBILITIES = buildVisibilityGraph();
focal_class.type: ImmutableGraph<Visibility>
focal_class.var_name: VISIBILITIES
focal_class.declarator: value
focal_class.modifier: private final
focal_class.original_string: private final Visibility value;
focal_class.type: Visibility
focal_class.var_name: value
focal_class.file: server/src/main/java/io/spine/server/entity/EntityVisibility.java
focal_class.identifier: EntityVisibility
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: EntityVisibility.EntityVisibility(Visibility value)
focal_class.full_signature: private  EntityVisibility(Visibility value)
focal_class.identifier: EntityVisibility
focal_class.modifiers: private
focal_class.parameters: (Visibility value)
focal_class.signature:  EntityVisibility(Visibility value)
focal_class.class_method_signature: EntityVisibility.of(Class<? extends EntityState> stateClass)
focal_class.full_signature: public static Optional<EntityVisibility> of(Class<? extends EntityState> stateClass)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (Class<? extends EntityState> stateClass)
focal_class.return: Optional<EntityVisibility>
focal_class.signature: Optional<EntityVisibility> of(Class<? extends EntityState> stateClass)
focal_class.class_method_signature: EntityVisibility.canSubscribe()
focal_class.full_signature: public boolean canSubscribe()
focal_class.identifier: canSubscribe
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canSubscribe()
focal_class.class_method_signature: EntityVisibility.canQuery()
focal_class.full_signature: public boolean canQuery()
focal_class.identifier: canQuery
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canQuery()
focal_class.class_method_signature: EntityVisibility.isNotNone()
focal_class.full_signature: public boolean isNotNone()
focal_class.identifier: isNotNone
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isNotNone()
focal_class.class_method_signature: EntityVisibility.is(Visibility visibility)
focal_class.full_signature: public boolean is(Visibility visibility)
focal_class.identifier: is
focal_class.modifiers: public
focal_class.parameters: (Visibility visibility)
focal_class.return: boolean
focal_class.signature: boolean is(Visibility visibility)
focal_class.class_method_signature: EntityVisibility.isAsLeast(Visibility visibility)
focal_class.full_signature: public boolean isAsLeast(Visibility visibility)
focal_class.identifier: isAsLeast
focal_class.modifiers: public
focal_class.parameters: (Visibility visibility)
focal_class.return: boolean
focal_class.signature: boolean isAsLeast(Visibility visibility)
focal_class.class_method_signature: EntityVisibility.checkNotDefault(Visibility visibility)
focal_class.full_signature: private static void checkNotDefault(Visibility visibility)
focal_class.identifier: checkNotDefault
focal_class.modifiers: private static
focal_class.parameters: (Visibility visibility)
focal_class.return: void
focal_class.signature: void checkNotDefault(Visibility visibility)
focal_class.class_method_signature: EntityVisibility.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: EntityVisibility.buildVisibilityGraph()
focal_class.full_signature: private static ImmutableGraph<Visibility> buildVisibilityGraph()
focal_class.identifier: buildVisibilityGraph
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: ImmutableGraph<Visibility>
focal_class.signature: ImmutableGraph<Visibility> buildVisibilityGraph()
focal_method.body: public static Optional<EntityVisibility> of(Class<? extends EntityState> stateClass) {
          checkNotNull(stateClass);
  
          if (Event.class.equals(stateClass)) {
              return Optional.of(new EntityVisibility(NONE));
          }
          if (!GeneratedMessageV3.class.isAssignableFrom(stateClass)) {
              return Optional.empty();
          }
  
          Descriptor descriptor = TypeName.of(stateClass)
                                          .messageDescriptor();
          Optional<EntityOption> option = EntityStateOption.valueOf(descriptor);
          if(!option.isPresent()) {
              return Optional.empty();
          }
          EntityOption entityOption = option.get();
          Visibility visibility = entityOption.getVisibility();
          if (visibility == DEFAULT) {
              Kind kind = entityOption.getKind();
              visibility = kind == PROJECTION ? FULL : NONE;
          }
          EntityVisibility result = new EntityVisibility(visibility);
          return Optional.of(result);
      }
focal_method.class_method_signature: EntityVisibility.of(Class<? extends EntityState> stateClass)
focal_method.full_signature: public static Optional<EntityVisibility> of(Class<? extends EntityState> stateClass)
focal_method.identifier: of
focal_method.invocations: checkNotNull equals of isAssignableFrom empty messageDescriptor of valueOf isPresent empty get getVisibility getKind of
focal_method.modifiers: public static
focal_method.parameters: (Class<? extends EntityState> stateClass)
focal_method.return: Optional<EntityVisibility>
focal_method.signature: Optional<EntityVisibility> of(Class<? extends EntityState> stateClass)