|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object macaw.businessLayer.Variable
public abstract class Variable
A concept related to the NSHD study.
Field Summary | |
---|---|
protected java.lang.String |
codeBookNumber
|
protected java.lang.String |
columnEnd
|
protected java.lang.String |
columnStart
|
protected java.lang.String |
form
|
protected java.lang.String |
notes
|
protected java.lang.String |
questionNumber
|
Constructor Summary | |
---|---|
Variable()
|
Method Summary | |
---|---|
void |
addOntologyTerm(OntologyTerm ontologyTerm)
|
void |
addOntologyTerms(java.util.ArrayList<OntologyTerm> ontologyTermsToAdd)
|
void |
addSupportingDocument(SupportingDocument supportingDocument)
|
void |
addSupportingDocuments(java.util.ArrayList<SupportingDocument> supportingDocumentsToAdd)
|
void |
addValueLabel(ValueLabel valueLabel)
|
abstract java.lang.Object |
clone()
|
protected void |
cloneAttributes(Variable cloneVariable)
|
boolean |
containsOntologyTerm(OntologyTerm targetOntologyTerm)
|
boolean |
containsSupportingDocument(SupportingDocument targetSupportingDocument)
|
VariableSummary |
createVariableSummary()
produces a variable summary suitable for showing in a collection of search results. |
static MacawChangeEvent |
detectChangesInAlternativeVariable(User user,
Variable originalVariable,
Variable revisedAlternativeVariable)
|
static java.util.ArrayList<MacawChangeEvent> |
detectFieldChanges(User user,
Variable originalVariable,
Variable revisedVariable)
|
java.lang.String |
getAlias()
|
Variable |
getAlternativeVariable()
|
java.lang.String |
getAvailability()
|
java.lang.String |
getCategory()
|
java.lang.String |
getCleaningDescription()
free text description of how the variable data were cleaned. |
java.lang.String |
getCleaningStatus()
|
java.lang.String |
getCodeBookNumber()
|
java.lang.String |
getColumnEnd()
ending column in library file for this variable |
java.lang.String |
getColumnStart()
starting column in library file for this variable |
java.lang.String |
getDisplayItemIdentifier()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getFilePath()
|
java.lang.String |
getForm()
questionnaire form containing the question whose response is stored in the variable |
int |
getIdentifier()
an integer which uniquely identifies an instance in the database. |
java.lang.String |
getLabel()
a one-line description of the variable |
java.lang.String |
getName()
variable name, as specified using the NSHD variable naming convention |
java.lang.String |
getNotes()
|
java.util.ArrayList<OntologyTerm> |
getOntologyTerms()
|
java.lang.String |
getQuestionNumber()
question number from the questionnaire for this variable |
java.util.ArrayList<SupportingDocument> |
getSupportingDocuments()
|
java.util.ArrayList<ValueLabel> |
getValueLabels()
|
java.lang.String |
getYear()
sweep in which the variable was collected |
boolean |
isCleaned()
flag for whether the variable has been cleaned in some way |
boolean |
isCoded()
flag for whether the variable has been coded electronically (or not) |
boolean |
isNewRecord()
|
void |
removeOntologyTerm(OntologyTerm copyOfOntologyTermToDelete)
|
void |
removeOntologyTerms(java.util.ArrayList<OntologyTerm> ontologyTermsToDelete)
|
void |
removeSupportingDocument(SupportingDocument supportingDocument)
|
void |
removeSupportingDocuments(java.util.ArrayList<SupportingDocument> supportingDocumentsToDelete)
|
void |
removeValueLabel(ValueLabel valueLabel)
|
void |
setAlias(java.lang.String alias)
|
void |
setAlternativeVariable(Variable alterativeVariable)
|
void |
setAvailability(java.lang.String availability)
|
void |
setCategory(java.lang.String category)
|
void |
setCleaned(boolean isCleaned)
|
void |
setCleaningDescription(java.lang.String cleaningDescription)
|
void |
setCleaningStatus(java.lang.String cleaningStatus)
|
void |
setCodeBookNumber(java.lang.String codeBookNumber)
reference to the physical code book entry |
void |
setCoded(boolean isCoded)
|
void |
setColumnEnd(java.lang.String columnEnd)
|
void |
setColumnStart(java.lang.String columnStart)
|
void |
setFilePath(java.lang.String filePath)
|
void |
setForm(java.lang.String form)
|
void |
setIdentifier(int identifier)
|
void |
setIsNewRecord(boolean isNewRecord)
|
void |
setLabel(java.lang.String label)
|
void |
setName(java.lang.String name)
|
void |
setNotes(java.lang.String notes)
|
void |
setOntologyTerms(java.util.ArrayList<OntologyTerm> ontologyTerms)
|
void |
setQuestionNumber(java.lang.String questionNumber)
|
void |
setSupportingDocuments(java.util.ArrayList<SupportingDocument> supportingDocuments)
|
void |
setValueLabels(java.util.ArrayList<ValueLabel> valueLabels)
|
void |
setYear(java.lang.String year)
|
void |
updateOntologyTerm(OntologyTerm revisedOntologyTerm)
|
protected static java.util.ArrayList<java.lang.String> |
validateFields(Variable variable)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String form
protected java.lang.String questionNumber
protected java.lang.String codeBookNumber
protected java.lang.String columnStart
protected java.lang.String columnEnd
protected java.lang.String notes
Constructor Detail |
---|
public Variable()
Method Detail |
---|
public VariableSummary createVariableSummary()
public int getIdentifier()
public void setIdentifier(int identifier)
identifier
- the identifier to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- the label to setpublic java.lang.String getYear()
public void setYear(java.lang.String year)
year
- the year to setpublic java.lang.String getCategory()
public void setCategory(java.lang.String category)
category
- the category to setpublic boolean isCleaned()
public void setCleaned(boolean isCleaned)
isCleaned
- the isCleaned to setpublic java.lang.String getCleaningStatus()
public void setCleaningStatus(java.lang.String cleaningStatus)
cleaningStatus
- the cleaningStatus to setpublic java.lang.String getCleaningDescription()
public void setCleaningDescription(java.lang.String cleaningDescription)
cleaningDescription
- the cleaningDescription to setpublic java.util.ArrayList<ValueLabel> getValueLabels()
public void setValueLabels(java.util.ArrayList<ValueLabel> valueLabels)
public void addValueLabel(ValueLabel valueLabel)
public void removeValueLabel(ValueLabel valueLabel)
public java.util.ArrayList<SupportingDocument> getSupportingDocuments()
public boolean containsSupportingDocument(SupportingDocument targetSupportingDocument)
public void setSupportingDocuments(java.util.ArrayList<SupportingDocument> supportingDocuments)
public void addSupportingDocuments(java.util.ArrayList<SupportingDocument> supportingDocumentsToAdd)
public void addSupportingDocument(SupportingDocument supportingDocument)
public void removeSupportingDocument(SupportingDocument supportingDocument)
public void removeSupportingDocuments(java.util.ArrayList<SupportingDocument> supportingDocumentsToDelete)
public java.util.ArrayList<OntologyTerm> getOntologyTerms()
public boolean containsOntologyTerm(OntologyTerm targetOntologyTerm)
public void setOntologyTerms(java.util.ArrayList<OntologyTerm> ontologyTerms)
public void addOntologyTerms(java.util.ArrayList<OntologyTerm> ontologyTermsToAdd)
public void addOntologyTerm(OntologyTerm ontologyTerm)
public void removeOntologyTerm(OntologyTerm copyOfOntologyTermToDelete)
public void removeOntologyTerms(java.util.ArrayList<OntologyTerm> ontologyTermsToDelete)
public void updateOntologyTerm(OntologyTerm revisedOntologyTerm)
public java.lang.String getAvailability()
public void setAvailability(java.lang.String availability)
availability
- the availability to setpublic java.lang.String getCodeBookNumber()
public void setCodeBookNumber(java.lang.String codeBookNumber)
codeBookNumber
- the codeBookNumber to setpublic java.lang.String getColumnStart()
public void setColumnStart(java.lang.String columnStart)
columnStart
- the columnStart to setpublic java.lang.String getColumnEnd()
public void setColumnEnd(java.lang.String columnEnd)
columnEnd
- the columnEnd to setpublic java.lang.String getAlias()
public void setAlias(java.lang.String alias)
alias
- the alias to setpublic java.lang.String getFilePath()
public void setFilePath(java.lang.String filePath)
filePath
- the dataLibraryFileName to setpublic boolean isCoded()
public void setCoded(boolean isCoded)
isCoded
- the isCoded to setpublic boolean isNewRecord()
public void setIsNewRecord(boolean isNewRecord)
public java.lang.String getForm()
public void setForm(java.lang.String form)
form
- the form to setpublic java.lang.String getQuestionNumber()
public void setQuestionNumber(java.lang.String questionNumber)
questionNumber
- the questionNumber to setpublic java.lang.String getNotes()
public void setNotes(java.lang.String notes)
public Variable getAlternativeVariable()
public void setAlternativeVariable(Variable alterativeVariable)
protected static java.util.ArrayList<java.lang.String> validateFields(Variable variable)
public static java.util.ArrayList<MacawChangeEvent> detectFieldChanges(User user, Variable originalVariable, Variable revisedVariable)
public static MacawChangeEvent detectChangesInAlternativeVariable(User user, Variable originalVariable, Variable revisedAlternativeVariable)
public java.lang.String getDisplayName()
getDisplayName
in interface Displayable
public java.lang.String getDisplayItemIdentifier()
getDisplayItemIdentifier
in interface Displayable
public abstract java.lang.Object clone()
clone
in class java.lang.Object
protected void cloneAttributes(Variable cloneVariable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |