skipcheck

TM1 client · Docs · Queries

ODataLiterals

import io.skipcheck.tm1.client.odata.ODataLiterals;

OData literals, as they appear in keys, function parameters and $filter, before percent-encoding.

Members

string staticA string literal.
enumMember staticAn enumeration literal in OData 4.0 form, with its type.
of staticA literal for a Java value.

string

static
static String string(String value)

A string literal: single-quoted, with single quotes doubled ('O''Neil').

Parameters

value
the text

Returns

the quoted literal, not yet percent-encoded

enumMember

static
static String enumMember(String qualifiedType, String member)

An enumeration literal in OData 4.0 form, with its type: ibm.tm1.api.v1.ElementType'Numeric'.

Parameters

qualifiedType
the enumeration type's namespace-qualified name
member
the member's name

Returns

the literal, not yet percent-encoded

of

static
static String of(Object value)

A literal for a Java value: strings are quoted, numbers and booleans written as is, null as null. Use ODataLiterals.Raw for an already-formed literal, such as an enum member or a date.

Parameters

value
the value, or null

Returns

the literal, not yet percent-encoded

Throws

IllegalArgumentException
for types with no unambiguous literal form

Also in the Javadoc.