Record Class CsdlNavigationProperty
java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlNavigationProperty
- Record Components:
name- the property's nametype- the target typenullable- whether a single-valued navigation may be null (default true)partner- the name of the navigation property going back, ornullcontainsTarget- whether the targets are contained, so addressed through this propertyannotations- its annotations, in document order
public record CsdlNavigationProperty(String name, CsdlTypeRef type, boolean nullable, @Nullable String partner, boolean containsTarget, List<CsdlAnnotation> annotations)
extends Record
A navigation property: a link from one entity (or complex) type to an entity or a
collection of them, such as
Cube/Views.-
Constructor Summary
ConstructorsConstructorDescriptionCsdlNavigationProperty(String name, CsdlTypeRef type, boolean nullable, @Nullable String partner, boolean containsTarget, List<CsdlAnnotation> annotations) Validates and copies the components. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.booleanReturns the value of thecontainsTargetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleannullable()Returns the value of thenullablerecord component.@Nullable Stringpartner()Returns the value of thepartnerrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
CsdlNavigationProperty
public CsdlNavigationProperty(String name, CsdlTypeRef type, boolean nullable, @Nullable String partner, boolean containsTarget, List<CsdlAnnotation> annotations) 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
type
-
nullable
-
partner
-
containsTarget
public boolean containsTarget()Returns the value of thecontainsTargetrecord component.- Returns:
- the value of the
containsTargetrecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-