Class ResponseDomain
- java.lang.Object
-
- no.nsd.qddt.domain.AbstractEntity
-
- no.nsd.qddt.domain.AbstractEntityAudit
-
- no.nsd.qddt.domain.responsedomain.ResponseDomain
-
- All Implemented Interfaces:
IEntityAuditXmlRef
@Entity public class ResponseDomain extends AbstractEntityAudit
CodeList A special form of maintainable that allows a single codelist to be maintained outside of a CodeListScheme.- QuestionGrid
- Structures the QuestionGrid as an NCube-like structure providing dimension information, labeling options, and response domains attached to one or more cells within the grid.
- QuestionItem
- Structure a single Question which may contain one or more response domains (i.e., a list of valid category responses where if "Other" is indicated a text response can be used to specify the intent of "Other").
- ResponseInMixed
- A structure that provides both the response domain and information on how it should be attached, or related, to other specified response domains in the question.
- Category
- A category (without an attached category) response for a question item.
- Implemented as: Code.Category = Code.codeValue;
- Code
- A coded response (where both codes and their related category value are displayed) for a question item.
- Implemented as: Code.Category = "A_NAME", Code.CodeValue = "A_VALUE"
- Numeric
- A numeric response (the intent is to analyze the response as a number) for a question item.
- Implemented as: Code = NULL; (no category is needed)
- Scale
- A scale response which describes a 1..n dimensional scale of various display types for a question.
- Implemented as: Code.CodeValue = valid values 1..n + control codes (N/A, Refuses, can't answer, don't know etc)
- Text
- A textual response.
- Implemented as: Code = NULL; (no category is needed)
- These to be implemented later
- -DateTime; A date or time response for a question item.
- -Distribution;A distribution response for a question, may only be included in-line.
- -Geographic; A geographic coordinate reading as a response for a question item.
- -GeographicLocationCode; A response domain capturing the name or category of a Geographic Location as a response for a question item, may only be included in-line.
- -GeographicStructureCode;A geographic structure category as a response for a question item, may only be included in-line.
- -Location; A location response (mark on an image, recording, or object) for a question, may only be included in-line.
- -Nominal; A nominal (check off) response for a question grid response, may only be included in-line.
- -Ranking; A ranking response which supports a "ranking" of categories. Generally used within a QuestionGrid, may only be included in-line.
-
-
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 ResponseDomain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
beforeInsert()
protected void
beforeUpdate()
boolean
equals(java.lang.Object o)
void
fillDoc(PdfReport pdfReport, java.lang.String counter)
java.util.List<Code>
getCodes()
java.lang.String
getDescription()
java.lang.String
getDisplayLayout()
Vocabulary for Display layout would suffice with 'Horizontal' (default) vs.protected java.util.List<Category>
getFlatManagedRepresentation(Category current)
Category
getManagedRepresentation()
java.lang.String
getName()
ResponseCardinality
getResponseCardinality()
ResponseKind
getResponseKind()
java.util.UUID
getSchemaId()
AbstractXmlBuilder
getXmlBuilder()
int
hashCode()
void
populateCodes()
this is useful for populating codes before saving to DBvoid
setCodes(java.util.List<Code> codes)
void
setDescription(java.lang.String description)
void
setDisplayLayout(java.lang.String displayLayout)
void
setManagedRepresentation(Category managedRepresentation)
protected void
setResponseCardinality(ResponseCardinality responseCardinality)
void
setResponseKind(ResponseKind responseKind)
void
setSchemaId(java.util.UUID schemaId)
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface no.nsd.qddt.domain.IEntityAuditXmlRef
getId
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIEntityAuditXmlRef
- Overrides:
getName
in classAbstractEntityAudit
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getResponseKind
public ResponseKind getResponseKind()
-
setResponseKind
public void setResponseKind(ResponseKind responseKind)
-
getResponseCardinality
public ResponseCardinality getResponseCardinality()
-
setResponseCardinality
protected void setResponseCardinality(ResponseCardinality responseCardinality)
-
getDisplayLayout
public java.lang.String getDisplayLayout()
Vocabulary for Display layout would suffice with 'Horizontal' (default) vs. Vertical'.- Returns:
- DisplayLayout
-
setDisplayLayout
public void setDisplayLayout(java.lang.String displayLayout)
-
populateCodes
public void populateCodes()
this is useful for populating codes before saving to DB
-
getManagedRepresentation
public Category getManagedRepresentation()
-
getFlatManagedRepresentation
protected java.util.List<Category> getFlatManagedRepresentation(Category current)
-
setManagedRepresentation
public void setManagedRepresentation(Category managedRepresentation)
-
beforeInsert
protected void beforeInsert()
- Specified by:
beforeInsert
in classAbstractEntityAudit
-
beforeUpdate
protected void beforeUpdate()
- Specified by:
beforeUpdate
in classAbstractEntityAudit
-
getCodes
public java.util.List<Code> getCodes()
-
setCodes
public void setCodes(java.util.List<Code> codes)
-
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
-
getSchemaId
public java.util.UUID getSchemaId()
-
setSchemaId
public void setSchemaId(java.util.UUID schemaId)
-
-