Record Class CsdlTypeRef
java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlTypeRef
- Record Components:
name- the type's qualified name, withoutCollection(...)collection- whether it's a collection of that type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecollectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanTrue for the built-inEdm.*types.name()Returns the value of thenamerecord component.static CsdlTypeRefParses aTypeattribute.toString()The type as written in CSDL, e.g.
-
Constructor Details
-
CsdlTypeRef
Validates the components.
-
-
Method Details
-
parse
Parses aTypeattribute.- Parameters:
text- the attribute's value, e.g.Collection(tm1.Element); surrounding whitespace is ignored- Returns:
- the type reference
-
isPrimitive
public boolean isPrimitive()True for the built-inEdm.*types.- Returns:
- true if the type's name starts with
Edm.
-
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
-
collection
public boolean collection()Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-