Class Category
- java.lang.Object
-
- no.nsd.qddt.domain.AbstractEntity
-
- no.nsd.qddt.domain.AbstractEntityAudit
-
- no.nsd.qddt.domain.category.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class no.nsd.qddt.domain.AbstractEntityAudit
AbstractEntityAudit.ChangeKind
-
-
Field Summary
-
Fields inherited from class no.nsd.qddt.domain.AbstractEntityAudit
hasRun
-
Fields inherited from class no.nsd.qddt.domain.AbstractEntity
LOG
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbeforeInsert()protected voidbeforeUpdate()Categoryclone()intcompareTo(Category o)booleanequals(java.lang.Object o)voidfillDoc(PdfReport pdfReport, java.lang.String counter)CategoryTypegetCategoryType()java.util.List<Category>getChildren()CategoryRelationCodeTypegetClassificationLevel()CodegetCode()java.util.List<Code>getCodes()java.lang.StringgetDescription()java.lang.StringgetFormat()format is used by datetime, and other kinds if needed.HierarchyLevelgetHierarchyLevel()ResponseCardinalitygetInputLimit()This field is only used for categories that facilitates user input.java.lang.StringgetLabel()java.lang.StringgetName()AbstractXmlBuildergetXmlBuilder()inthashCode()voidsetCategoryType(CategoryType categoryType)voidsetChildren(java.util.List<Category> children)voidsetCode(Code code)voidsetCodes(java.util.List<Code> codes)voidsetDescription(java.lang.String description)voidsetFormat(java.lang.String format)voidsetHierarchyLevel(HierarchyLevel hierarchyLevel)voidsetInputLimit(java.lang.String minimum, java.lang.String maximum)voidsetInputLimit(ResponseCardinality inputLimit)voidsetLabel(java.lang.String label)java.lang.StringtoString()-
Methods inherited from class no.nsd.qddt.domain.AbstractEntityAudit
getAgency, getBasedOnObject, getBasedOnRevision, getChangeComment, getChangeKind, getClassKind, getComments, getVersion, getXmlLang, isBasedOn, isNewCopy, makeNewCopy, makePdf, setAgency, setBasedOnObject, setBasedOnRevision, setChangeComment, setChangeKind, setClassKind, setComments, setName, setVersion, setXmlLang
-
Methods inherited from class no.nsd.qddt.domain.AbstractEntity
getId, getModified, getModifiedBy, setField, setId, setModified, setModifiedBy
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface no.nsd.qddt.domain.IEntityAuditXmlRef
getId
-
-
-
-
Method Detail
-
getCategoryType
public CategoryType getCategoryType()
-
setCategoryType
public void setCategoryType(CategoryType categoryType)
-
getHierarchyLevel
public HierarchyLevel getHierarchyLevel()
-
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(ResponseCardinality inputLimit)
-
setInputLimit
public void setInputLimit(java.lang.String minimum, java.lang.String maximum)
-
getClassificationLevel
public CategoryRelationCodeType getClassificationLevel()
-
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)
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIEntityAuditXmlRef- Overrides:
getNamein classAbstractEntityAudit
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractEntityAudit
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractEntityAudit
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractEntityAudit
-
fillDoc
public void fillDoc(PdfReport pdfReport, java.lang.String counter)
- Specified by:
fillDocin classAbstractEntityAudit
-
compareTo
public int compareTo(Category o)
- Specified by:
compareToin interfacejava.lang.Comparable<Category>
-
beforeUpdate
protected void beforeUpdate()
- Specified by:
beforeUpdatein classAbstractEntityAudit
-
beforeInsert
protected void beforeInsert()
- Specified by:
beforeInsertin classAbstractEntityAudit
-
getCodes
public java.util.List<Code> getCodes()
-
setCodes
public void setCodes(java.util.List<Code> codes)
-
clone
public Category clone()
- Overrides:
clonein classjava.lang.Object
-
getXmlBuilder
public AbstractXmlBuilder getXmlBuilder()
- Specified by:
getXmlBuilderin interfaceIEntityAuditXmlRef- Specified by:
getXmlBuilderin classAbstractEntity
-
-