Package org.dlese.dpc.vocab
Class VocabNodeTermsGroups
java.lang.Object
org.dlese.dpc.vocab.VocabNodeTermsGroups
- All Implemented Interfaces:
Serializable,VocabNode
VocabNode is a node within the vocab hierarchy of a MetadataVocab instance
- Author:
- Ryan Deardorff
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVocabNodeTermsGroups(String name, boolean noDisplay, int groupLevel) Constructor for the VocabNode object -
Method Summary
Modifier and TypeMethodDescriptionGets the vocab node definitiongetDescription(PageContext page) Gets a truncated (first two sentences or first 300 characters, whichever comes first) version of a vocab descritionbooleanGets the divider attribute of the vocab node (for UI list dividing)Each vocab term has a field and a value.intGets the groupLevel attribute of the VocabNode objectbooleanGets the hasSubList attribute of the VocabNode objectgetId()Gets the encoded system Id (indexed invalid input: '&' used in search queries)This is needed because Struts <logic:equal> compares strings that look like numbers without regard to leading 0s, and our ID convention causes matches between '05' and '005' to return true (they are "equal").booleanGets the isLastInSublist attribute of the VocabNode objectgetLabel()Gets the user interface labelGets the abbreviated user interface labelgetList()Gets the vocab node sub-listgetName()Gets the Metadata namebooleanGets the noDisplay attribute of the vocab node (for UI suppression)booleanGets the noDisplayOriginal attribute of the VocabNode objectStruts equivalent of getList()--JPSs work by iterating over ArrayLists (Collections)booleangetWrap()Gets the wrap attribute of the vocab node (for UI table column wrapping)voidsetDefinition(String definition) Sets the vocab node definitionvoidsetDescription(String description) Sets the vocab node src (file for information panel)voidsetDivider(boolean divider) Sets the divider attribute of the vocab node (for UI list dividing)voidsetFieldId(String fieldId) Each vocab term has a field and a value.voidsetGroupLevel(int groupLevel) Sets the groupLevel attribute of the VocabNode objectvoidSets the encoded system Id (indexed invalid input: '&' used in search queries)voidsetIsLastInSubList(boolean isLastInSubList) Sets the isLastInSublist attribute of the VocabNode objectvoidSets the user interface labelvoidsetLabelAbbrev(String labelAbbrev) Sets the abbreviated user interface labelvoidSets the vocab node sub-listvoidsetMetaFormat(String metaFormat) Sets the metaFormat attribute of the VocabNodeTermsGroups objectvoidSets the Metadata namevoidsetNoDisplay(boolean noDisplay) Sets the noDisplay attribute of the vocab node (for UI suppression)voidsetNoDisplayOriginal(boolean noDisplayOriginal) Sets the noDisplay attribute of the vocab node (for UI suppression)voidSets the src attribute of the VocabNode objectvoidsetWrap(boolean wrap) Sets the wrap attribute of the vocab node (for UI table column wrapping)
-
Constructor Details
-
VocabNodeTermsGroups
Constructor for the VocabNode object- Parameters:
name- metadata namenoDisplay-groupLevel-
-
-
Method Details
-
setMetaFormat
Sets the metaFormat attribute of the VocabNodeTermsGroups object- Specified by:
setMetaFormatin interfaceVocabNode- Parameters:
metaFormat- The new metaFormat value
-
setGroupLevel
public void setGroupLevel(int groupLevel) Sets the groupLevel attribute of the VocabNode object- Specified by:
setGroupLevelin interfaceVocabNode- Parameters:
groupLevel- The new groupLevel value
-
getGroupLevel
public int getGroupLevel()Gets the groupLevel attribute of the VocabNode object- Specified by:
getGroupLevelin interfaceVocabNode- Returns:
- The groupLevel value
-
setFieldId
Each vocab term has a field and a value. This sets the encoded system Id of this term's field.- Specified by:
setFieldIdin interfaceVocabNode- Parameters:
fieldId- The new fieldId value
-
getFieldId
Each vocab term has a field and a value. This gets the encoded system Id of this term's field.- Specified by:
getFieldIdin interfaceVocabNode- Returns:
- The fieldId value
-
getName
Gets the Metadata name -
setName
Sets the Metadata name -
getId
Gets the encoded system Id (indexed invalid input: '&' used in search queries) -
setId
Sets the encoded system Id (indexed invalid input: '&' used in search queries) -
getIdCompare
This is needed because Struts <logic:equal> compares strings that look like numbers without regard to leading 0s, and our ID convention causes matches between '05' and '005' to return true (they are "equal"). Solution: turn comparison into non-digit strings ('05Compare' vs. '005Compare') and then Struts will use alphabetical instead of numerical comparison.- Returns:
- The idCompare value
-
getLabel
Gets the user interface label -
setLabel
Sets the user interface label -
getLabelAbbrev
Gets the abbreviated user interface label- Specified by:
getLabelAbbrevin interfaceVocabNode- Returns:
- The labelAbbrev value
-
setLabelAbbrev
Sets the abbreviated user interface label- Specified by:
setLabelAbbrevin interfaceVocabNode- Parameters:
labelAbbrev- The new labelAbbrev value
-
getDefinition
Gets the vocab node definition- Specified by:
getDefinitionin interfaceVocabNode- Returns:
- The definition value
-
setDefinition
Sets the vocab node definition- Specified by:
setDefinitionin interfaceVocabNode- Parameters:
definition- The new definition value
-
setSrc
Sets the src attribute of the VocabNode object -
getDescription
Gets a truncated (first two sentences or first 300 characters, whichever comes first) version of a vocab descrition- Specified by:
getDescriptionin interfaceVocabNode- Parameters:
page-- Returns:
- The src value
-
setDescription
Sets the vocab node src (file for information panel)- Specified by:
setDescriptionin interfaceVocabNode- Parameters:
description- The new description value
-
getList
Gets the vocab node sub-list -
setList
Sets the vocab node sub-list -
getSubList
Struts equivalent of getList()--JPSs work by iterating over ArrayLists (Collections)- Specified by:
getSubListin interfaceVocabNode- Returns:
- The list value
-
getHasSubList
public boolean getHasSubList()Gets the hasSubList attribute of the VocabNode object- Specified by:
getHasSubListin interfaceVocabNode- Returns:
- The hasSubList value
-
getNoDisplay
public boolean getNoDisplay()Gets the noDisplay attribute of the vocab node (for UI suppression)- Specified by:
getNoDisplayin interfaceVocabNode- Returns:
- The noDisplay value
-
setNoDisplay
public void setNoDisplay(boolean noDisplay) Sets the noDisplay attribute of the vocab node (for UI suppression)- Specified by:
setNoDisplayin interfaceVocabNode- Parameters:
noDisplay- The new noDisplay value
-
getNoDisplayOriginal
public boolean getNoDisplayOriginal()Gets the noDisplayOriginal attribute of the VocabNode object- Specified by:
getNoDisplayOriginalin interfaceVocabNode- Returns:
- The noDisplayOriginal value
-
setNoDisplayOriginal
public void setNoDisplayOriginal(boolean noDisplayOriginal) Sets the noDisplay attribute of the vocab node (for UI suppression)- Specified by:
setNoDisplayOriginalin interfaceVocabNode- Parameters:
noDisplayOriginal- The new noDisplayOriginal value
-
getWrap
public boolean getWrap()Gets the wrap attribute of the vocab node (for UI table column wrapping) -
setWrap
public void setWrap(boolean wrap) Sets the wrap attribute of the vocab node (for UI table column wrapping) -
getDivider
public boolean getDivider()Gets the divider attribute of the vocab node (for UI list dividing)- Specified by:
getDividerin interfaceVocabNode- Returns:
- The divider value
-
setDivider
public void setDivider(boolean divider) Sets the divider attribute of the vocab node (for UI list dividing)- Specified by:
setDividerin interfaceVocabNode- Parameters:
divider- The new divider value
-
setIsLastInSubList
public void setIsLastInSubList(boolean isLastInSubList) Sets the isLastInSublist attribute of the VocabNode object- Specified by:
setIsLastInSubListin interfaceVocabNode- Parameters:
isLastInSubList- The new isLastInSubList value
-
getIsLastInSubList
public boolean getIsLastInSubList()Gets the isLastInSublist attribute of the VocabNode object- Specified by:
getIsLastInSubListin interfaceVocabNode- Returns:
- The isLastInSublist value
-