Model class

Inheritance
Available Extensions

Constructors

Model(Domain domain, String modelCode)

Properties

author String?
getter/setter pair
code String?
getter/setter pairinherited
codeFirstLetterLower String
no setterinherited
codeFirstLetterUpper String
no setterinherited
codeLowerSpace String
no setterinherited
codeLowerUnderscore String
no setterinherited
codePlural String
no setterinherited
codePluralFirstLetterLower String
no setterinherited
codePluralFirstLetterUpper String
no setterinherited
codePluralFirstLetterUpperSpace String
no setterinherited
codePluralLowerUnderscore String
no setterinherited
concept Concept
getter/setter pairinherited
conceptCount int
no setter
concepts Concepts
getter/setter pair
description String?
getter/setter pair
domain Domain
getter/setter pair
entryConceptCount int
no setter
entryConcepts List<Concept>
no setter
exceptions IValidationExceptions
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id Id?
no setterinherited
oid Oid
getter/setter pairinherited
orderedEntryConceptCount int
no setter
orderedEntryConcepts List<Concept>
no setter
post bool
getter/setter pairinherited
pre bool
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
whenAdded DateTime?
Log
getter/setter pairinherited
whenRemoved DateTime?
getter/setter pairinherited
whenSet DateTime?
getter/setter pairinherited

Methods

compareAttributes(Model entity) int
Compares two entities based on their 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.
inherited
compareTo(dynamic entity) int
Compares two entities based on codes, ids or attributes. If the result is less than 0 then the first entity 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.
inherited
copy() Model
Copies the entity (oid, code, attributes and neighbors). It is not a deep copy.
inherited
display({String prefix = '', bool withOid = true, bool withChildren = true, bool withInternalChildren = true}) → void
Displays (prints) an entity with its attributes, parents and children.
inherited
displayToString() → void
inherited
equalContent(Model entity) bool
Checks if the entity is equal in content to the given entity. Two entities are equal if they have the same content, ignoring oid and when.
inherited
equals(Model entity) bool
Two entities are equal if their oids are equal.
inherited
fromJson<K extends Entity<K>>(String entityJson) → void
inherited
fromJsonMap(dynamic entityMap, [Entity<Entity>? internalParent]) → void
Loads data from a json map.
inherited
getAttribute<K>(String attributeCode) → K?
inherited
getChild(String? name) Object?
inherited
getConcept(String conceptCode) Concept?
getEntryConcept(String entryConceptCode) Concept?
getInternalChild(String name) Object?
inherited
getParent(String name) Object?
inherited
getReference(String name) Reference?
inherited
getStringFromAttribute(String name) String
inherited
getStringOrNullFromAttribute(String name) String?
inherited
newEntities() Entities<Model>
inherited
newEntity() Entity<Model>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postSetAttribute(String name, Object? value) bool
inherited
preSetAttribute(String name, Object? value) bool
inherited
setAttribute(String name, Object? value) bool
inherited
setAttributesFrom(Entity<Entity> entity) bool
inherited
setChild(String name, Object entities) bool
inherited
setParent(String name, dynamic entity) bool
inherited
setReference(String name, Reference reference) → void
inherited
setStringToAttribute(String name, String string) bool
inherited
toJson() String
inherited
toJsonMap() Map<String, Object>
inherited
toString() String
Returns a string that represents this entity by using oid and code.
inherited