DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.standards.asn
Class SelectedStandardsBean

java.lang.Object
  extended by org.dlese.dpc.schemedit.standards.asn.SelectedStandardsBean

public class SelectedStandardsBean
extends Object

Helper class to provide information about the currently selected standards in the UI, which may span several standards documents. The "docKey" attribute is settable by the UI, which enables information about a specific document (and its selected standards) to be queried.

Author:
ostwald

Constructor Summary
SelectedStandardsBean(List selectedStandards, String currentDocKey)
          Constructor for the SelectedStandardsBean object
 
Method Summary
 void destroy()
          Description of the Method
 AsnDocInfo getDocInfo()
          Gets the docInfo for the current document
 AsnDocInfo getDocInfo(String docKey)
          Gets the docInfo for specified standards document
 String getDocKey()
          The standards document key set by the UI, enabling it to query for selected standards from a specific document.
 Set getDocKeys()
          All the doc keys for which there are selected standards.
 int getNumOtherSelected()
          Gets the number of selected standards that are NOT from the current document
 int getNumSelected()
          Gets the numSelected attribute of the SelectedStandardsBean object
 int getNumSelected(String docKey)
          Gets the numSelected attribute of the SelectedStandardsBean object
 Map getOtherSelectedStandards()
          Gets the selected standards that are not in the active standards document (which is determined by currentDocKey.
 AsnStandardsDocument getStandardsDocument(String key)
          Gets the standardsTree for the standards doc specified by provided key.
static void main(String[] args)
          The main program for the SelectedStandardsBean class
 void report()
          Description of the Method
 void setDocKey(String key)
          Doc key settable by UI.
 void showOthers(Map others)
          Description of the Method
 void update(List selectedStandards, String currentDocKey)
          Update SelectedStandardBean with information from UI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectedStandardsBean

public SelectedStandardsBean(List selectedStandards,
                             String currentDocKey)
Constructor for the SelectedStandardsBean object

Parameters:
selectedStandards - standards currently selected in the UI
currentDocKey - key (e.g., "NSES.Science.1995.D10001D0") of standards document currently active in UI
Method Detail

update

public void update(List selectedStandards,
                   String currentDocKey)
Update SelectedStandardBean with information from UI

Parameters:
selectedStandards - list of stds selected in UI
currentDocKey - docKey (e.g., "NSES.Science.1995.D10001D0")

getDocKey

public String getDocKey()
The standards document key set by the UI, enabling it to query for selected standards from a specific document.

Returns:
The docKey value (e.g., "NSES.Science.1995.D10001D0")

setDocKey

public void setDocKey(String key)
Doc key settable by UI.

Parameters:
key - The new docKey value

getDocKeys

public Set getDocKeys()
All the doc keys for which there are selected standards.

Returns:
The docKeys value

getDocInfo

public AsnDocInfo getDocInfo(String docKey)
Gets the docInfo for specified standards document

Parameters:
docKey - document key
Returns:
The docInfo value

getDocInfo

public AsnDocInfo getDocInfo()
Gets the docInfo for the current document

Returns:
The docInfo value

getNumSelected

public int getNumSelected()
Gets the numSelected attribute of the SelectedStandardsBean object

Returns:
The numSelected value

getNumSelected

public int getNumSelected(String docKey)
Gets the numSelected attribute of the SelectedStandardsBean object

Parameters:
docKey - NOT YET DOCUMENTED
Returns:
The numSelected value

getNumOtherSelected

public int getNumOtherSelected()
Gets the number of selected standards that are NOT from the current document

Returns:
The numOtherSelected value

getStandardsDocument

public AsnStandardsDocument getStandardsDocument(String key)
Gets the standardsTree for the standards doc specified by provided key.

Parameters:
key - Description of the Parameter
Returns:
The standardsTree value

getOtherSelectedStandards

public Map getOtherSelectedStandards()
Gets the selected standards that are not in the active standards document (which is determined by currentDocKey.

Returns:
The otherSelectedStandards value

main

public static void main(String[] args)
                 throws Exception
The main program for the SelectedStandardsBean class

Parameters:
args - The command line arguments
Throws:
Exception - NOT YET DOCUMENTED

destroy

public void destroy()
Description of the Method


report

public void report()
Description of the Method


showOthers

public void showOthers(Map others)
Description of the Method

Parameters:
others - Description of the Parameter

DLESE Tools
v1.6.0