Id class

Implemented types

Constructors

Id(Concept _concept)

Properties

attributeLength int
no setteroverride
concept Concept
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
length int
no setteroverride
referenceLength int
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareAttributes(Id id) int
Compares two ids based on attributes. If the result is less than 0 then the first id is less than the second, if it is equal to 0 they are equal and if the result is greater than 0 then the first is greater than the second.
compareParents(Id id) int
Compares two ids based on parents. If the result is less than 0 then the first id is less than the second, if it is equal to 0 they are equal and if the result is greater than 0 then the first is greater than the second.
compareTo(Id id) int
Compares two ids based on parent entity ids and attributes. If the result is less than 0 then the first id is less than the second, if it is equal to 0 they are equal and if the result is greater than 0 then the first is greater than the second.
override
display([String title = 'Id']) → void
Displays the id in a human-readable format in terminal.
equalAttributes(Id id) bool
Two ids are equal if their attributes are equal.
equalParents(Id id) bool
Two ids are equal if their parents are equal.
equals(Id id) bool
Checks if the id is equal in content to the given id. Two ids are equal if they have the same content.
getAttribute(String code) Object?
override
getReference(String code) Reference?
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAttribute(String code, Object? attribute) → void
override
setParent(String code, Entity<Entity> entity) → void
setReference(String code, Reference? reference) → void
override
toString() String
Returns a string that represents this id.
override