CsdlRevision
import io.skipcheck.tm1.csdl.CsdlRevision; 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.
Members
CsdlRevision constructor | |
TERM static | The term holding revisions. |
of static | Reads the Core.Revisions records from an element's annotations, in document order. |
addedIn static | The version this element was first added in, if its revisions say. |
deprecatedIn static | The version this element was deprecated in, if its revisions say. |
toString | |
hashCode | |
equals | |
version | |
kind | |
rawKind | |
description |
CsdlRevision
constructorCsdlRevision(String version, CsdlRevision.Kind kind, String rawKind, String description)TERM
staticString TERMThe term holding revisions.
of
staticstatic List<CsdlRevision> of(List<CsdlAnnotation> annotations) Reads the Core.Revisions records 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
staticstatic Optional<String> addedIn(List<CsdlAnnotation> annotations)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
staticstatic Optional<String> deprecatedIn(List<CsdlAnnotation> annotations)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
String toString()hashCode
int hashCode()equals
boolean equals(Object o)version
String version()kind
CsdlRevision.Kind kind()rawKind
String rawKind()description
String description()Also in the Javadoc.