Record Class ApiMetadataDto
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.mcp.dto.ApiMetadataDto
- Record Components:
sinceVersion- Версия платформы, начиная с которой член доступен;null, если не задано.deprecatedSinceVersion- Версия, начиная с которой устарел;null, если не задано.recommendedReplacements- Рекомендуемые замены устаревшего члена.availabilities- Контексты исполнения, в которых член доступен.accessMode- Режим доступа для свойства (READ/READ_WRITE);nullдля методов.returnValueDescription- Текст раздела «Возвращаемое значение»;null, если отсутствует.notes- Текст раздела «Замечание»;null, если отсутствует.examples- Примеры использования.seeAlso- «См. также» — связанные сущности.
public record ApiMetadataDto(@Nullable String sinceVersion, @Nullable String deprecatedSinceVersion, List<String> recommendedReplacements, List<String> availabilities, @Nullable String accessMode, @Nullable String returnValueDescription, @Nullable String notes, List<String> examples, List<String> seeAlso)
extends Record
Метаинформация элемента API из справочника: контексты исполнения, версионная
совместимость, тексты разделов «Возвращаемое значение», «Замечание»,
«Примеры», «См. также». Для 1С источник — синтакс-помощник платформы, для
OneScript — встроенный справочник типов.
Описывает как член типа, так и сам тип или его конструктор — набор заполненных полей зависит от источника (у типа нет режима доступа, у конструктора — описания возвращаемого значения).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ApiMetadataDtoПустая метаинформация — все поляnullили пустые списки. -
Constructor Summary
ConstructorsConstructorDescriptionApiMetadataDto(@Nullable String sinceVersion, @Nullable String deprecatedSinceVersion, List<String> recommendedReplacements, List<String> availabilities, @Nullable String accessMode, @Nullable String returnValueDescription, @Nullable String notes, List<String> examples, List<String> seeAlso) Creates an instance of aApiMetadataDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessModerecord component.Returns the value of theavailabilitiesrecord component.Returns the value of thedeprecatedSinceVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.examples()Returns the value of theexamplesrecord component.static ApiMetadataDtofrom(PlatformMetadata metadata, Language language) final inthashCode()Returns a hash code value for this object.booleanisEmpty()notes()Returns the value of thenotesrecord component.Returns the value of therecommendedReplacementsrecord component.Returns the value of thereturnValueDescriptionrecord component.seeAlso()Returns the value of theseeAlsorecord component.Returns the value of thesinceVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
Пустая метаинформация — все поляnullили пустые списки.
-
-
Constructor Details
-
ApiMetadataDto
public ApiMetadataDto(@Nullable String sinceVersion, @Nullable String deprecatedSinceVersion, List<String> recommendedReplacements, List<String> availabilities, @Nullable String accessMode, @Nullable String returnValueDescription, @Nullable String notes, List<String> examples, List<String> seeAlso) Creates an instance of aApiMetadataDtorecord class.- Parameters:
sinceVersion- the value for thesinceVersionrecord componentdeprecatedSinceVersion- the value for thedeprecatedSinceVersionrecord componentrecommendedReplacements- the value for therecommendedReplacementsrecord componentavailabilities- the value for theavailabilitiesrecord componentaccessMode- the value for theaccessModerecord componentreturnValueDescription- the value for thereturnValueDescriptionrecord componentnotes- the value for thenotesrecord componentexamples- the value for theexamplesrecord componentseeAlso- the value for theseeAlsorecord component
-
-
Method Details
-
from
-
isEmpty
public boolean isEmpty() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sinceVersion
Returns the value of thesinceVersionrecord component.- Returns:
- the value of the
sinceVersionrecord component
-
deprecatedSinceVersion
Returns the value of thedeprecatedSinceVersionrecord component.- Returns:
- the value of the
deprecatedSinceVersionrecord component
-
recommendedReplacements
Returns the value of therecommendedReplacementsrecord component.- Returns:
- the value of the
recommendedReplacementsrecord component
-
availabilities
Returns the value of theavailabilitiesrecord component.- Returns:
- the value of the
availabilitiesrecord component
-
accessMode
Returns the value of theaccessModerecord component.- Returns:
- the value of the
accessModerecord component
-
returnValueDescription
Returns the value of thereturnValueDescriptionrecord component.- Returns:
- the value of the
returnValueDescriptionrecord component
-
notes
-
examples
-
seeAlso
-