Class SelectedStandardsBean
java.lang.Object
org.dlese.dpc.schemedit.standards.asn.SelectedStandardsBean
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
ConstructorsConstructorDescriptionSelectedStandardsBean(List selectedStandards, String currentDocKey) Constructor for the SelectedStandardsBean object -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Description of the MethodGets the docInfo for the current documentgetDocInfo(String docKey) Gets the docInfo for specified standards documentThe standards document key set by the UI, enabling it to query for selected standards from a specific document.All the doc keys for which there are selected standards.intGets the number of selected standards that are NOT from the current documentintGets the numSelected attribute of the SelectedStandardsBean objectintgetNumSelected(String docKey) Gets the numSelected attribute of the SelectedStandardsBean objectGets the selected standards that are not in the active standards document (which is determined by currentDocKey.Gets the standardsTree for the standards doc specified by provided key.static voidThe main program for the SelectedStandardsBean classvoidreport()Description of the MethodvoidDoc key settable by UI.voidshowOthers(Map others) Description of the MethodvoidUpdate SelectedStandardBean with information from UI
-
Constructor Details
-
SelectedStandardsBean
Constructor for the SelectedStandardsBean object- Parameters:
selectedStandards- standards currently selected in the UIcurrentDocKey- key (e.g., "NSES.Science.1995.D10001D0") of standards document currently active in UI
-
-
Method Details
-
update
Update SelectedStandardBean with information from UI- Parameters:
selectedStandards- list of stds selected in UIcurrentDocKey- docKey (e.g., "NSES.Science.1995.D10001D0")
-
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
Doc key settable by UI.- Parameters:
key- The new docKey value
-
getDocKeys
All the doc keys for which there are selected standards.- Returns:
- The docKeys value
-
getDocInfo
Gets the docInfo for specified standards document- Parameters:
docKey- document key- Returns:
- The docInfo value
-
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
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
Gets the standardsTree for the standards doc specified by provided key.- Parameters:
key- Description of the Parameter- Returns:
- The standardsTree value
-
getOtherSelectedStandards
Gets the selected standards that are not in the active standards document (which is determined by currentDocKey.- Returns:
- The otherSelectedStandards value
-
main
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
Description of the Method- Parameters:
others- Description of the Parameter
-