DLESE Tools
v1.2

org.dlese.dpc.vocab
Class VocabNode

java.lang.Object
  extended byorg.dlese.dpc.vocab.VocabNode

public class VocabNode
extends Object

VocabNode is a node within the vocab hierarchy of a MetadataVocab instance

Author:
Ryan Deardorff

Constructor Summary
VocabNode(String name, boolean noDisplay)
          Constructor for the VocabNode object
 
Method Summary
 String getDefinition()
          Gets the definition attribute of the VocabNode object
 boolean getDivider()
          Gets the divider attribute of the VocabNode object
 String getId()
          Gets the id attribute of the VocabNode object
 String 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").
 String getLabel()
          Gets the label attribute of the VocabNode object
 String getLabelAbbrev()
          Gets the labelAbbrev attribute of the VocabNode object
 VocabList getList()
          Gets the list (sub-vocab) attribute of the VocabNode object
 String getName()
          Gets the name attribute of the VocabNode object
 boolean getNoDisplay()
          Gets the noDisplay attribute of the VocabNode object
 String getSrc()
          Gets the definition attribute of the VocabNode object
 boolean getWrap()
          Gets the wrap attribute of the VocabNode object
 void setDefinition(String definition)
          Sets the definition attribute of the VocabNode object
 void setDivider(boolean divider)
          Sets the divider attribute of the VocabNode object
 void setId(String id)
          Sets the id attribute of the VocabNode object
 void setLabel(String label)
          Sets the label attribute of the VocabNode object
 void setLabelAbbrev(String labelAbbrev)
          Sets the label attribute of the VocabNode object
 void setList(VocabList list)
          Sets the list attribute of the VocabNode object
 void setName(String name)
          Sets the name attribute of the VocabNode object
 void setNoDisplay(boolean noDisplay)
          Sets the noDisplay attribute of the VocabNode object
 void setSrc(String src)
          Sets the definition attribute of the VocabNode object
 void setWrap(boolean wrap)
          Sets the wrap attribute of the VocabNode object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VocabNode

public VocabNode(String name,
                 boolean noDisplay)
Constructor for the VocabNode object

Parameters:
name - metadata name
noDisplay -
Method Detail

getName

public String getName()
Gets the name attribute of the VocabNode object

Returns:
The name value

setName

public void setName(String name)
Sets the name attribute of the VocabNode object

Parameters:
name - The new name value

getId

public String getId()
Gets the id attribute of the VocabNode object

Returns:
The id value

setId

public void setId(String id)
Sets the id attribute of the VocabNode object

Parameters:
id - The new id value

getIdCompare

public String 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

public String getLabel()
Gets the label attribute of the VocabNode object

Returns:
The label value

setLabel

public void setLabel(String label)
Sets the label attribute of the VocabNode object

Parameters:
label - The new label value

getLabelAbbrev

public String getLabelAbbrev()
Gets the labelAbbrev attribute of the VocabNode object

Returns:
The labelAbbrev value

setLabelAbbrev

public void setLabelAbbrev(String labelAbbrev)
Sets the label attribute of the VocabNode object

Parameters:
labelAbbrev - The new labelAbbrev value

getDefinition

public String getDefinition()
Gets the definition attribute of the VocabNode object

Returns:
The definition value

setDefinition

public void setDefinition(String definition)
Sets the definition attribute of the VocabNode object

Parameters:
definition - The new definition value

getSrc

public String getSrc()
Gets the definition attribute of the VocabNode object

Returns:
The src value

setSrc

public void setSrc(String src)
Sets the definition attribute of the VocabNode object

Parameters:
src - The new src value

getList

public VocabList getList()
Gets the list (sub-vocab) attribute of the VocabNode object

Returns:
The list value

setList

public void setList(VocabList list)
Sets the list attribute of the VocabNode object

Parameters:
list - The new list value

getNoDisplay

public boolean getNoDisplay()
Gets the noDisplay attribute of the VocabNode object

Returns:
The noDisplay value

setNoDisplay

public void setNoDisplay(boolean noDisplay)
Sets the noDisplay attribute of the VocabNode object

Parameters:
noDisplay - The new noDisplay value

getWrap

public boolean getWrap()
Gets the wrap attribute of the VocabNode object

Returns:
The wrap value

setWrap

public void setWrap(boolean wrap)
Sets the wrap attribute of the VocabNode object

Parameters:
wrap - The new wrap value

getDivider

public boolean getDivider()
Gets the divider attribute of the VocabNode object

Returns:
The divider value

setDivider

public void setDivider(boolean divider)
Sets the divider attribute of the VocabNode object

Parameters:
divider - The new divider value

DLESE Tools
v1.2