ODataLiterals
import io.skipcheck.tm1.client.odata.ODataLiterals; OData literals, as they appear in keys, function parameters and $filter, before
percent-encoding.
Members
string static | A string literal. |
enumMember static | An enumeration literal in OData 4.0 form, with its type. |
of static | A literal for a Java value. |
string
staticstatic 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
staticstatic 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
staticstatic 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.