Package io.skipcheck.tm1.csdl
$metadata), and a parser for it.
The client uses it to read a server's $metadata: to check which operations the
connected server defines, to generate the model, and to measure endpoint coverage. It
covers the parts of CSDL 4.0/4.01 that TM1 uses: schemas, entity, complex and enum
types, navigation properties, actions and functions, the entity container, and
annotations, including Core.Revisions. Unknown elements and annotation terms
are kept or ignored, never an error, as the CSDL specification requires of clients.
Names are kept as written in the document. A type or operation can be referred to by
its namespace (ibm.tm1.api.v1.Cube) or by its schema's alias
(tm1.Cube); use CsdlDocument.qualify(String) to
compare them.
Everything here is non-null unless marked Nullable.
-
ClassDescriptionA CSDL annotation: a vocabulary term applied to a model element, such as
Core.DescriptionorCore.Revisions.A complex type: a structured type without a key, such asProcessParameter.A parsed CSDL document ($metadata): its schemas, and lookups across them.The entity container: the service's top-level resources, addressed from the service root.An unbound action, addressable from the service root.An entity set.An unbound function, addressable from the service root.A singleton: a single entity addressed by name.An entity type: a structured type with a key, such asCube.An enumeration type, such asElementType.A member of an enumeration.A navigation property: a link from one entity (or complex) type to an entity or a collection of them, such asCube/Views.An action or a function.Action or function.A parameter of an action or function.A CSDL document couldn't be parsed: it's malformed, or not CSDL.Parses CSDL XML ($metadata) into aCsdlDocument.A structural property of an entity or complex type.One record of aCore.Revisionsannotation: the schema version in which a model element was added, modified or deprecated.The kinds of revision in the Core vocabulary, plusCsdlRevision.Kind.UNKNOWNfor anything else.A CSDL schema: one namespace of types and operations.An entity type or a complex type: a named type with properties.A reference to a type, as written in aTypeattribute:Edm.String,tm1.Element, orCollection(tm1.Element).The value of a CSDL annotation: a constant, a collection or a record.ACollectionof values, in document order.AString,Bool,Int,Decimal,EnumMemberor other constant, as written.An annotation with no value, such as<Annotation Term="Core.ConventionalIDs"/>, which means true for a Boolean term.An expression the client doesn't interpret, kept by element name.ARecord: property values by name, in document order.