skipcheck

TM1 CSDL docs · Metadata

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 staticThe term holding revisions.
of staticReads the Core.Revisions records from an element's annotations, in document order.
addedIn staticThe version this element was first added in, if its revisions say.
deprecatedIn staticThe version this element was deprecated in, if its revisions say.
toString
hashCode
equals
version
kind
rawKind
description

CsdlRevision

constructor
CsdlRevision(String version, CsdlRevision.Kind kind, String rawKind, String description)

TERM

static
String TERM

The term holding revisions.

of

static
static 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.Revisions collection

addedIn

static
static 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 Added revision with a version, or empty

deprecatedIn

static
static 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 Deprecated revision 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.