Record Class CsdlSchema

java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlSchema
Record Components:
namespace - the schema's namespace, e.g. ibm.tm1.api.v1
alias - its alias, e.g. tm1, or null
entityTypes - its entity types
complexTypes - its complex types
enumTypes - its enum types
operations - its actions and functions, overloads included
entityContainer - its entity container, or null
annotations - annotations on the schema itself, e.g. Core.SchemaVersion
externalAnnotations - annotations in Annotations elements, by their Target

public record CsdlSchema(String namespace, @Nullable String alias, List<CsdlEntityType> entityTypes, List<CsdlComplexType> complexTypes, List<CsdlEnumType> enumTypes, List<CsdlOperation> operations, @Nullable CsdlEntityContainer entityContainer, List<CsdlAnnotation> annotations, Map<String, List<CsdlAnnotation>> externalAnnotations) extends Record
A CSDL schema: one namespace of types and operations.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • namespace

      public String namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • alias

      public @Nullable String alias()
      Returns the value of the alias record component.
      Returns:
      the value of the alias record component
    • entityTypes

      public List<CsdlEntityType> entityTypes()
      Returns the value of the entityTypes record component.
      Returns:
      the value of the entityTypes record component
    • complexTypes

      public List<CsdlComplexType> complexTypes()
      Returns the value of the complexTypes record component.
      Returns:
      the value of the complexTypes record component
    • enumTypes

      public List<CsdlEnumType> enumTypes()
      Returns the value of the enumTypes record component.
      Returns:
      the value of the enumTypes record component
    • operations

      public List<CsdlOperation> operations()
      Returns the value of the operations record component.
      Returns:
      the value of the operations record component
    • entityContainer

      public @Nullable CsdlEntityContainer entityContainer()
      Returns the value of the entityContainer record component.
      Returns:
      the value of the entityContainer record component
    • annotations

      public List<CsdlAnnotation> annotations()
      Returns the value of the annotations record component.
      Returns:
      the value of the annotations record component
    • externalAnnotations

      public Map<String, List<CsdlAnnotation>> externalAnnotations()
      Returns the value of the externalAnnotations record component.
      Returns:
      the value of the externalAnnotations record component