Class Category

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<Category>, IEntityAuditXmlRef

    @Entity
    public class Category
    extends AbstractEntityAudit
    implements java.lang.Comparable<Category>, java.lang.Cloneable

    CategoryScheme : Categories provide enumerated representations for concepts and are used by questions, category lists, and variables

    CodeListScheme : Code lists link a specific value with a category and are used by questions and variables

    ManagedRepresentationScheme : Reusable representations of numeric, textual datetime, scale or missing values types.

    CodeType (aka Code) A structure that links a unique value of a category to a specified category and provides information as to the location of the category within a hierarchy, whether it is discrete, represents a total for the CodeList contents, and if its sub-elements represent a comprehensive coverage of the category. The Code is identifiable, but the value within the category must also be unique within the CodeList.

    • Constructor Detail

      • Category

        public Category()
      • Category

        public Category​(java.lang.String name,
                        java.lang.String label)
        Parameters:
        name - Category name
        label - Shorter version of name if applicable
    • Method Detail

      • setCategoryType

        public void setCategoryType​(CategoryType categoryType)
      • setHierarchyLevel

        public void setHierarchyLevel​(HierarchyLevel hierarchyLevel)
      • getLabel

        public java.lang.String getLabel()
      • setLabel

        public void setLabel​(java.lang.String label)
      • getDescription

        public java.lang.String getDescription()
      • setDescription

        public void setDescription​(java.lang.String description)
      • getCode

        public Code getCode()
      • setCode

        public void setCode​(Code code)
      • getInputLimit

        public ResponseCardinality getInputLimit()
        This field is only used for categories that facilitates user input. like numeric range / text length /
      • setInputLimit

        public void setInputLimit​(java.lang.String minimum,
                                  java.lang.String maximum)
      • getFormat

        public java.lang.String getFormat()
        format is used by datetime, and other kinds if needed.
      • setFormat

        public void setFormat​(java.lang.String format)
      • getChildren

        public java.util.List<Category> getChildren()
      • setChildren

        public void setChildren​(java.util.List<Category> children)
      • compareTo

        public int compareTo​(Category o)
        Specified by:
        compareTo in interface java.lang.Comparable<Category>
      • getCodes

        public java.util.List<Code> getCodes()
      • setCodes

        public void setCodes​(java.util.List<Code> codes)
      • clone

        public Category clone()
        Overrides:
        clone in class java.lang.Object