Record Class CsdlRevision
java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlRevision
- Record Components:
version- the schema version, ornullif the record has nonekind- the kind of revisionrawKind- the kind as written, e.g.Core.RevisionKind/Added, for kinds this client doesn't knowdescription- the reason given, ornull
public record CsdlRevision(@Nullable String version, CsdlRevision.Kind kind, @Nullable String rawKind, @Nullable String description)
extends Record
One record of a
Core.Revisions annotation: the schema version in which a model
element was added, modified or deprecated.
TM1 annotates most of its API this way, back to 10.2.2. The versions are schema
versions (as in Core.SchemaVersion, e.g. 11.8.35), not server build
numbers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe kinds of revision in the Core vocabulary, plusCsdlRevision.Kind.UNKNOWNfor anything else. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCsdlRevision(@Nullable String version, CsdlRevision.Kind kind, @Nullable String rawKind, @Nullable String description) Creates an instance of aCsdlRevisionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddedIn(List<CsdlAnnotation> annotations) The version this element was first added in, if its revisions say.deprecatedIn(List<CsdlAnnotation> annotations) The version this element was deprecated in, if its revisions say.@Nullable StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.static List<CsdlRevision> of(List<CsdlAnnotation> annotations) Reads theCore.Revisionsrecords from an element's annotations, in document order.@Nullable StringrawKind()Returns the value of therawKindrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringversion()Returns the value of theversionrecord component.
-
Field Details
-
TERM
-
-
Constructor Details
-
CsdlRevision
public CsdlRevision(@Nullable String version, CsdlRevision.Kind kind, @Nullable String rawKind, @Nullable String description) Creates an instance of aCsdlRevisionrecord class.- Parameters:
version- the value for theversionrecord componentkind- the value for thekindrecord componentrawKind- the value for therawKindrecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
of
Reads theCore.Revisionsrecords from an element's annotations, in document order.- Parameters:
annotations- the element's annotations- Returns:
- the revisions, or an empty list if there's no
Core.Revisionscollection
-
addedIn
The version this element was first added in, if its revisions say.- Parameters:
annotations- the element's annotations- Returns:
- the schema version of the first
Addedrevision with a version, or empty
-
deprecatedIn
The version this element was deprecated in, if its revisions say.- Parameters:
annotations- the element's annotations- Returns:
- the schema version of the first
Deprecatedrevision with a version, or empty
-
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). -
version
-
kind
-
rawKind
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-