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.v1alias- its alias, e.g.tm1, ornullentityTypes- its entity typescomplexTypes- its complex typesenumTypes- its enum typesoperations- its actions and functions, overloads includedentityContainer- its entity container, ornullannotations- annotations on the schema itself, e.g.Core.SchemaVersionexternalAnnotations- annotations inAnnotationselements, by theirTarget
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 Summary
ConstructorsConstructorDescriptionCsdlSchema(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) Validates and copies the components. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringalias()Returns the value of thealiasrecord component.Returns the value of theannotationsrecord component.Returns the value of thecomplexTypesrecord component.@Nullable CsdlEntityContainerReturns the value of theentityContainerrecord component.Returns the value of theentityTypesrecord component.Returns the value of theenumTypesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalAnnotationsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenamespacerecord component.Returns the value of theoperationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CsdlSchema
public 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) Validates and copies the components.
-
-
Method Details
-
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). -
namespace
-
alias
-
entityTypes
Returns the value of theentityTypesrecord component.- Returns:
- the value of the
entityTypesrecord component
-
complexTypes
Returns the value of thecomplexTypesrecord component.- Returns:
- the value of the
complexTypesrecord component
-
enumTypes
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
entityContainer
Returns the value of theentityContainerrecord component.- Returns:
- the value of the
entityContainerrecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
externalAnnotations
Returns the value of theexternalAnnotationsrecord component.- Returns:
- the value of the
externalAnnotationsrecord component
-