Interface Code

All Known Implementing Classes:
AccessRightsCode, CodeImp, GenderCode

public interface Code
The abstraction of a reference table or reference codes. A code table is an extensible and temporal enumeration. New values can be added without recompiling the application. A code can have a validity period. To guaranty consistency, a code format shall never be deleted, only be disabled. Code instances are immutable.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the human-readable representation of a code table entity.
    boolean
    Returns true if the code table instance is enabled.
    int
    id()
    Returns the unique identifier of a code table entity.
  • Method Details

    • id

      int id()
      Returns the unique identifier of a code table entity.
      Returns:
      unique identifier of the code table instance
    • code

      String code()
      Returns the human-readable representation of a code table entity.
      Returns:
      human-readable code
    • enabled

      boolean enabled()
      Returns true if the code table instance is enabled.
      Returns:
      flag indicating if the code is enabled or archived