Contents > C: List of Design Rules > C.3 Datatype Rules

C.3 Datatype Rules

Rule: UnnamedCategory: Completeness
Severity: 1-highApplies to: all areas
The data type has no name.

Rule: KeywordCategory: Naming
Severity: 2-medApplies to: design
Data type name is a Java or C++ keyword; find another name for it.


Rule: NoQueryCategory: Correctness
Severity: 1-highApplies to: all areas
The data type has an operation that is not marked as a query.

All operations of a data type must be queries.

  • This is a WFR of the UML.
  • Value returned: name of the operation that should be a query.