public class SelectedStandardsBean
extends java.lang.Object
Constructor and Description |
---|
SelectedStandardsBean(java.util.List selectedStandards,
java.lang.String currentDocKey)
Constructor for the SelectedStandardsBean object
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Description of the Method
|
AsnDocInfo |
getDocInfo()
Gets the docInfo for the current document
|
AsnDocInfo |
getDocInfo(java.lang.String docKey)
Gets the docInfo for specified standards document
|
java.lang.String |
getDocKey()
The standards document key set by the UI, enabling it to query for selected
standards from a specific document.
|
java.util.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(java.lang.String docKey)
Gets the numSelected attribute of the SelectedStandardsBean object
|
java.util.Map |
getOtherSelectedStandards()
Gets the selected standards that are not in the active standards document
(which is determined by currentDocKey.
|
AsnStandardsDocument |
getStandardsDocument(java.lang.String key)
Gets the standardsTree for the standards doc specified by provided key.
|
static void |
main(java.lang.String[] args)
The main program for the SelectedStandardsBean class
|
void |
report()
Description of the Method
|
void |
setDocKey(java.lang.String key)
Doc key settable by UI.
|
void |
showOthers(java.util.Map others)
Description of the Method
|
void |
update(java.util.List selectedStandards,
java.lang.String currentDocKey)
Update SelectedStandardBean with information from UI
|
public SelectedStandardsBean(java.util.List selectedStandards, java.lang.String currentDocKey)
selectedStandards
- standards currently selected in the UIcurrentDocKey
- key (e.g., "NSES.Science.1995.D10001D0") of standards document currently active in UIpublic void update(java.util.List selectedStandards, java.lang.String currentDocKey)
selectedStandards
- list of stds selected in UIcurrentDocKey
- docKey (e.g., "NSES.Science.1995.D10001D0")public java.lang.String getDocKey()
public void setDocKey(java.lang.String key)
key
- The new docKey valuepublic java.util.Set getDocKeys()
public AsnDocInfo getDocInfo(java.lang.String docKey)
docKey
- document keypublic AsnDocInfo getDocInfo()
public int getNumSelected()
public int getNumSelected(java.lang.String docKey)
docKey
- NOT YET DOCUMENTEDpublic int getNumOtherSelected()
public AsnStandardsDocument getStandardsDocument(java.lang.String key)
key
- Description of the Parameterpublic java.util.Map getOtherSelectedStandards()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- NOT YET DOCUMENTEDpublic void destroy()
public void report()
public void showOthers(java.util.Map others)
others
- Description of the Parameter