DLESE Tools
v1.2

org.dlese.dpc.vocab
Class MetadataVocabInputState

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

public class MetadataVocabInputState
extends Object

Stores user state for selected controlled vocabularies.

Author:
Ryan Deardorff

Constructor Summary
MetadataVocabInputState(MetadataVocab vocab)
          Constructor for the MetadataVocabInputState object
 
Method Summary
 int getHistogramHighestCount()
          Gets the histogramHighestCount attribute of the MetadataVocabInputState object
 HashMap getHistogramState()
          Gets the histogramState attribute of the MetadataVocabInputState object
 int getHistogramTotal(String fieldValuePair)
          Gets the histogramState attribute of the MetadataVocabInputState object
 HashMap getState(String stateGroup)
          Gets the state attribute of the MetadataVocabInputState object
 String getStateFeedback(String stateGroup)
          Gets the stateFeedback attribute of the MetadataVocabInputState object
 Set getStateGroups()
          Gets the stateGroups attribute of the MetadataVocabInputState object
 String getStateJavascript(String stateGroup)
          Gets the stateFeedback attribute of the MetadataVocabInputState object
 void resetHistogramState()
          Description
 void resetState()
          Description
 void setHistogramHighestCount(int count)
          Sets the histogramHighestCount attribute of the MetadataVocabInputState object
 void setHistogramTotal(String fieldValuePair, int total)
          Sets the histogramTotal attribute of the MetadataVocabInputState object
 void setState(ServletRequest request, String system)
          Sets the state attribute of the MetadataVocabInputState object
 void setState(ServletRequest request, String system, String stateGroup)
          Sets the state attribute of the MetadataVocabInputState object
 String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetadataVocabInputState

public MetadataVocabInputState(MetadataVocab vocab)
Constructor for the MetadataVocabInputState object

Parameters:
vocab - controlled vocabulary manager (for metadata -> UI label mappings)
Method Detail

resetState

public void resetState()
Description


setState

public void setState(ServletRequest request,
                     String system)
Sets the state attribute of the MetadataVocabInputState object

Parameters:
request - The new state value
system - The new state value

setState

public void setState(ServletRequest request,
                     String system,
                     String stateGroup)
Sets the state attribute of the MetadataVocabInputState object

Parameters:
request - HTTP request
stateGroup - vocab field
system - The new state value

getState

public HashMap getState(String stateGroup)
Gets the state attribute of the MetadataVocabInputState object

Parameters:
stateGroup -
Returns:
The state value

getHistogramTotal

public int getHistogramTotal(String fieldValuePair)
Gets the histogramState attribute of the MetadataVocabInputState object

Parameters:
fieldValuePair -
Returns:
The histogramState value

setHistogramTotal

public void setHistogramTotal(String fieldValuePair,
                              int total)
Sets the histogramTotal attribute of the MetadataVocabInputState object

Parameters:
fieldValuePair - The new histogramTotal value
total - The new histogramTotal value

getHistogramState

public HashMap getHistogramState()
Gets the histogramState attribute of the MetadataVocabInputState object

Returns:
The histogramState value

resetHistogramState

public void resetHistogramState()
Description


setHistogramHighestCount

public void setHistogramHighestCount(int count)
Sets the histogramHighestCount attribute of the MetadataVocabInputState object

Parameters:
count - The new histogramHighestCount value

getHistogramHighestCount

public int getHistogramHighestCount()
Gets the histogramHighestCount attribute of the MetadataVocabInputState object

Returns:
The histogramHighestCount value

getStateFeedback

public String getStateFeedback(String stateGroup)
Gets the stateFeedback attribute of the MetadataVocabInputState object

Parameters:
stateGroup -
Returns:
The stateFeedback value

getStateJavascript

public String getStateJavascript(String stateGroup)
Gets the stateFeedback attribute of the MetadataVocabInputState object

Parameters:
stateGroup -
Returns:
The stateJavascript value

getStateGroups

public Set getStateGroups()
Gets the stateGroups attribute of the MetadataVocabInputState object

Returns:
The stateGroups value

toString

public String toString()
Description of the Method

Returns:

DLESE Tools
v1.2