Package no.nsd.qddt.domain.concept
Class Concept
- java.lang.Object
-
- no.nsd.qddt.domain.AbstractEntity
-
- no.nsd.qddt.domain.AbstractEntityAudit
-
- no.nsd.qddt.domain.concept.Concept
-
- All Implemented Interfaces:
IArchived
,IEntityAuditXmlRef
@Entity public class Concept extends AbstractEntityAudit implements IArchived
- A Concept consist of one or more QuestionItems.
- Every QuestionItem will have a Question.
- Every QuestionItem will have a ResponseDomain.
ConceptScheme: Concepts express ideas associated with objects and means of representing the concept
-
-
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
-
-
Constructor Summary
Constructors Constructor Description Concept()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChildren(Concept concept)
void
addQuestionItem(java.util.UUID questionItemId, java.lang.Integer rev)
void
addQuestionItem(ElementRef qef)
protected void
beforeInsert()
protected void
beforeUpdate()
boolean
equals(java.lang.Object o)
void
fillDoc(PdfReport pdfReport, java.lang.String counter)
java.util.Set<Concept>
getChildren()
java.util.List<ElementRef>
getConceptQuestionItems()
java.lang.String
getDescription()
java.lang.String
getLabel()
protected Concept
getParentRef()
protected TopicGroup
getParentTopicGroup()
TopicRef
getTopicRef()
AbstractXmlBuilder
getXmlBuilder()
int
hashCode()
boolean
isArchived()
void
removeQuestionItem(java.util.UUID questionItemId, java.lang.Integer rev)
void
setArchived(boolean archived)
void
setChildren(java.util.Set<Concept> children)
void
setConceptQuestionItems(java.util.List<ElementRef> conceptQuestionItems)
void
setDescription(java.lang.String description)
void
setLabel(java.lang.String label)
protected void
setParentC(Concept newParent)
void
setTopicGroup(TopicGroup topicGroup)
java.lang.String
toString()
-
Methods inherited from class no.nsd.qddt.domain.AbstractEntityAudit
getAgency, getBasedOnObject, getBasedOnRevision, getChangeComment, getChangeKind, getClassKind, getComments, getName, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface no.nsd.qddt.domain.IEntityAuditXmlRef
getId
-
-
-
-
Method Detail
-
setTopicGroup
public void setTopicGroup(TopicGroup topicGroup)
-
getConceptQuestionItems
public java.util.List<ElementRef> getConceptQuestionItems()
-
setConceptQuestionItems
public void setConceptQuestionItems(java.util.List<ElementRef> conceptQuestionItems)
-
removeQuestionItem
public void removeQuestionItem(java.util.UUID questionItemId, java.lang.Integer rev)
-
addQuestionItem
public void addQuestionItem(java.util.UUID questionItemId, java.lang.Integer rev)
-
addQuestionItem
public void addQuestionItem(ElementRef qef)
-
getChildren
public java.util.Set<Concept> getChildren()
-
setChildren
public void setChildren(java.util.Set<Concept> children)
-
addChildren
public void addChildren(Concept concept)
-
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)
-
isArchived
public boolean isArchived()
- Specified by:
isArchived
in interfaceIArchived
-
setArchived
public void setArchived(boolean archived)
- Specified by:
setArchived
in interfaceIArchived
-
getTopicRef
public TopicRef getTopicRef()
-
getParentRef
protected Concept getParentRef()
-
getParentTopicGroup
protected TopicGroup getParentTopicGroup()
-
setParentC
protected void setParentC(Concept newParent)
-
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
-
getXmlBuilder
public AbstractXmlBuilder getXmlBuilder()
- Specified by:
getXmlBuilder
in interfaceIEntityAuditXmlRef
- Specified by:
getXmlBuilder
in classAbstractEntity
-
fillDoc
public void fillDoc(PdfReport pdfReport, java.lang.String counter)
- Specified by:
fillDoc
in classAbstractEntityAudit
-
beforeUpdate
protected void beforeUpdate()
- Specified by:
beforeUpdate
in classAbstractEntityAudit
-
beforeInsert
protected void beforeInsert()
- Specified by:
beforeInsert
in classAbstractEntityAudit
-
-