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 void
beforeInsert()
protected void
beforeUpdate()
Category
clone()
int
compareTo(Category o)
boolean
equals(java.lang.Object o)
void
fillDoc(PdfReport pdfReport, java.lang.String counter)
CategoryType
getCategoryType()
java.util.List<Category>
getChildren()
CategoryRelationCodeType
getClassificationLevel()
Code
getCode()
java.util.List<Code>
getCodes()
java.lang.String
getDescription()
java.lang.String
getFormat()
format is used by datetime, and other kinds if needed.HierarchyLevel
getHierarchyLevel()
ResponseCardinality
getInputLimit()
This field is only used for categories that facilitates user input.java.lang.String
getLabel()
java.lang.String
getName()
AbstractXmlBuilder
getXmlBuilder()
int
hashCode()
void
setCategoryType(CategoryType categoryType)
void
setChildren(java.util.List<Category> children)
void
setCode(Code code)
void
setCodes(java.util.List<Code> codes)
void
setDescription(java.lang.String description)
void
setFormat(java.lang.String format)
void
setHierarchyLevel(HierarchyLevel hierarchyLevel)
void
setInputLimit(java.lang.String minimum, java.lang.String maximum)
void
setInputLimit(ResponseCardinality inputLimit)
void
setLabel(java.lang.String label)
java.lang.String
toString()
-
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:
getName
in interfaceIEntityAuditXmlRef
- Overrides:
getName
in classAbstractEntityAudit
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractEntityAudit
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractEntityAudit
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractEntityAudit
-
fillDoc
public void fillDoc(PdfReport pdfReport, java.lang.String counter)
- Specified by:
fillDoc
in classAbstractEntityAudit
-
compareTo
public int compareTo(Category o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Category>
-
beforeUpdate
protected void beforeUpdate()
- Specified by:
beforeUpdate
in classAbstractEntityAudit
-
beforeInsert
protected void beforeInsert()
- Specified by:
beforeInsert
in classAbstractEntityAudit
-
getCodes
public java.util.List<Code> getCodes()
-
setCodes
public void setCodes(java.util.List<Code> codes)
-
clone
public Category clone()
- Overrides:
clone
in classjava.lang.Object
-
getXmlBuilder
public AbstractXmlBuilder getXmlBuilder()
- Specified by:
getXmlBuilder
in interfaceIEntityAuditXmlRef
- Specified by:
getXmlBuilder
in classAbstractEntity
-
-