Record Class CsdlDocument
java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlDocument
- Record Components:
version- theedmx:EdmxVersion, e.g.4.0schemas- the schemas, in document order
A parsed CSDL document (
$metadata): its schemas, and lookups across them.
Lookups take a qualified name using either the namespace or the alias, so
ibm.tm1.api.v1.Cube and tm1.Cube find the same type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe term holding the service's schema version. -
Constructor Summary
ConstructorsConstructorDescriptionCsdlDocument(String version, List<CsdlSchema> schemas) Validates and copies the components. -
Method Summary
Modifier and TypeMethodDescriptionThe operations bound to this type (not collections of it), e.g.complexType(String qualifiedName) The complex type with this qualified name.The document's entity container, if any.entityType(String qualifiedName) The entity type with this qualified name.The enum type with this qualified name.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.operations(String qualifiedName) Every overload of the action or function with this qualified name.The qualified name, by namespace, of a type defined in one of this document's schemas.Rewrites a qualified name to use its schema's namespace rather than its alias:tm1.Cubebecomesibm.tm1.api.v1.Cube.schemas()Returns the value of theschemasrecord component.The schema version fromCore.SchemaVersion, e.g.structuredType(String qualifiedName) The entity or complex type with this qualified name.Every structured type in the document.final StringtoString()Returns a string representation of this record class.typeHierarchy(String qualifiedName) A structured type followed by its base types, nearest first.version()Returns the value of theversionrecord component.
-
Field Details
-
SCHEMA_VERSION_TERM
The term holding the service's schema version.- See Also:
-
-
Constructor Details
-
CsdlDocument
Validates and copies the components.
-
-
Method Details
-
qualify
Rewrites a qualified name to use its schema's namespace rather than its alias:tm1.Cubebecomesibm.tm1.api.v1.Cube. Names in other namespaces, such asEdm.String, are returned unchanged.- Parameters:
qualifiedName- a name qualified by namespace or alias- Returns:
- the name qualified by namespace
-
schemaVersion
-
entityContainer
The document's entity container, if any.- Returns:
- the first schema's entity container, or empty if none has one
-
entityType
The entity type with this qualified name.- Parameters:
qualifiedName- the type's name, qualified by namespace or alias- Returns:
- the entity type, or empty if the document doesn't define it
-
complexType
The complex type with this qualified name.- Parameters:
qualifiedName- the type's name, qualified by namespace or alias- Returns:
- the complex type, or empty if the document doesn't define it
-
structuredType
The entity or complex type with this qualified name.- Parameters:
qualifiedName- the type's name, qualified by namespace or alias- Returns:
- the type, or empty if the document doesn't define it
-
enumType
The enum type with this qualified name.- Parameters:
qualifiedName- the type's name, qualified by namespace or alias- Returns:
- the enum type, or empty if the document doesn't define it
-
operations
Every overload of the action or function with this qualified name.- Parameters:
qualifiedName- the operation's name, qualified by namespace or alias- Returns:
- the overloads in document order, or an empty list if there are none
-
boundTo
The operations bound to this type (not collections of it), e.g. everytm1.Cubeaction.- Parameters:
qualifiedTypeName- the binding type's name, qualified by namespace or alias- Returns:
- the bound operations in document order, or an empty list if there are none
-
typeHierarchy
A structured type followed by its base types, nearest first. Stops at a base type the document doesn't define, and at a cycle (which valid CSDL never has).- Parameters:
qualifiedName- the type's name, qualified by namespace or alias- Returns:
- the type and its base types, or an empty list if the document doesn't define the type
-
qualifiedName
The qualified name, by namespace, of a type defined in one of this document's schemas.- Parameters:
type- the type to name- Returns:
- its name qualified by namespace, or empty if it isn't in this document
-
structuredTypes
Every structured type in the document.- Returns:
- the entity and complex types, schema by schema, entity types first
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
version
-
schemas
-