test_class.file: model/policies/src/test/java/org/eclipse/ditto/model/policies/ImmutableLabelTest.java
test_class.identifier: ImmutableLabelTest
test_class.superclass: extends LengthRestrictionTestBase
test_case.body: @Test
      public void createValidLabelAttribute() {
          ImmutableLabel.of(generateStringWithMaxLength());
      }
test_case.class_method_signature: ImmutableLabelTest.createValidLabelAttribute()
test_case.full_signature: @Test public void createValidLabelAttribute()
test_case.identifier: createValidLabelAttribute
test_case.invocations: of generateStringWithMaxLength
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void createValidLabelAttribute()
focal_class.declarator: labelValue
focal_class.modifier: private final
focal_class.original_string: private final String labelValue;
focal_class.type: String
focal_class.var_name: labelValue
focal_class.file: model/policies/src/main/java/org/eclipse/ditto/model/policies/ImmutableLabel.java
focal_class.identifier: ImmutableLabel
focal_class.interfaces: implements Label
focal_class.class_method_signature: ImmutableLabel.ImmutableLabel(final String theLabelValue)
focal_class.full_signature: private  ImmutableLabel(final String theLabelValue)
focal_class.identifier: ImmutableLabel
focal_class.modifiers: private
focal_class.parameters: (final String theLabelValue)
focal_class.signature:  ImmutableLabel(final String theLabelValue)
focal_class.class_method_signature: ImmutableLabel.of(final CharSequence labelValue)
focal_class.full_signature: public static Label of(final CharSequence labelValue)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final CharSequence labelValue)
focal_class.return: Label
focal_class.signature: Label of(final CharSequence labelValue)
focal_class.class_method_signature: ImmutableLabel.length()
focal_class.full_signature: @Override public int length()
focal_class.identifier: length
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int length()
focal_class.class_method_signature: ImmutableLabel.charAt(final int index)
focal_class.full_signature: @Override public char charAt(final int index)
focal_class.identifier: charAt
focal_class.modifiers: @Override public
focal_class.parameters: (final int index)
focal_class.return: char
focal_class.signature: char charAt(final int index)
focal_class.class_method_signature: ImmutableLabel.subSequence(final int start, final int end)
focal_class.full_signature: @Override public CharSequence subSequence(final int start, final int end)
focal_class.identifier: subSequence
focal_class.modifiers: @Override public
focal_class.parameters: (final int start, final int end)
focal_class.return: CharSequence
focal_class.signature: CharSequence subSequence(final int start, final int end)
focal_class.class_method_signature: ImmutableLabel.equals(final Object o)
focal_class.full_signature: @Override public boolean equals(final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object o)
focal_class.class_method_signature: ImmutableLabel.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: ImmutableLabel.toString()
focal_class.full_signature: @Override @Nonnull public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override @Nonnull public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public static Label of(final CharSequence labelValue) {
          argumentNotEmpty(labelValue, "label value");
  
          final Validator validator = NoControlCharactersNoSlashesValidator.getInstance(labelValue);
          if (!validator.isValid()) {
              throw PolicyEntryInvalidException.newBuilder()
                      .message("The Policy Label " + labelValue + " is invalid")
                      .description(validator.getReason().orElse(null))
                      .build();
          }
  
          return new ImmutableLabel(labelValue.toString());
      }
focal_method.class_method_signature: ImmutableLabel.of(final CharSequence labelValue)
focal_method.full_signature: public static Label of(final CharSequence labelValue)
focal_method.identifier: of
focal_method.invocations: argumentNotEmpty getInstance isValid build description message newBuilder orElse getReason toString
focal_method.modifiers: public static
focal_method.parameters: (final CharSequence labelValue)
focal_method.return: Label
focal_method.signature: Label of(final CharSequence labelValue)