|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.duke.cs.banjo.data.settings.SettingItem
edu.duke.cs.banjo.data.settings.MandatorySettingItem
Holds an individual setting that is loaded into Banjo.
Details:
Change History:
Created on Oct 19, 2005
Part of a large-scale refactoring of the settings processing.
hjs (v2.1) Add constructor based on existing settingItem
Nested Class Summary |
Field Summary |
Fields inherited from class edu.duke.cs.banjo.data.settings.SettingItem |
collectedErrors, isDefaultValueUsed, isValidSetting, itemNameCanonical, itemNameDescriptive, itemNameForComparison, itemNameForDisplay, itemNameFormattedForDisplay, itemValueAsLoaded, itemValueValidated, objItemInfo, objItemValue |
Constructor Summary | |
MandatorySettingItem(SettingItem _settingItem)
Constructor based on an existing settingItem. |
|
MandatorySettingItem(java.lang.String _itemNameCanonical,
java.lang.String _itemNameDescriptive,
java.lang.String _settingNameForDisplay)
Constructor for creating a new "mandatory" settingItem. |
Method Summary | |
boolean |
validate(java.lang.String _itemValueAsLoaded,
java.lang.String _dataTypeToValidateAgainst,
int _validationType,
java.lang.Object _additionalInfo,
java.lang.Object _defaultValue)
Validation of a "mandatory" setting item. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MandatorySettingItem(java.lang.String _itemNameCanonical, java.lang.String _itemNameDescriptive, java.lang.String _settingNameForDisplay) throws java.lang.Exception
_itemNameCanonical
- The unique name that we use to refer to the settingItem._itemNameDescriptive
- The descriptive name of the settingItem._settingNameForDisplay
- The special name of the settingItem used in user feedback.public MandatorySettingItem(SettingItem _settingItem)
_settingItem
- The settingItem that we want to use as basis for the new one.Method Detail |
public boolean validate(java.lang.String _itemValueAsLoaded, java.lang.String _dataTypeToValidateAgainst, int _validationType, java.lang.Object _additionalInfo, java.lang.Object _defaultValue) throws java.lang.Exception
validate
in class SettingItem
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |