Package org.dlese.dpc.schemedit.config
Class StatusFlag
java.lang.Object
org.dlese.dpc.schemedit.config.StatusFlag
- All Implemented Interfaces:
Serializable
Hold a tuple of status value, label and accompanying decription.
For all but "Final status flags", the value and label are the same. For Final flags, the value is an encoded string that allows the system to identify the flag as a Final (see StatusFlags).
- Author:
- ostwald
$Id $
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatusFlag(String label, String description) Constructor for the StatusFlag objectStatusFlag(String label, String value, String description) Constructor for the StatusFlag objectStatusFlag(org.dom4j.Element statusFlagElement) Constructor for the StatusFlag object that accepts aElementand parses it into label and description values. -
Method Summary
-
Constructor Details
-
StatusFlag
Constructor for the StatusFlag object- Parameters:
label- Description of the Parameterdescription- Description of the Parameter
-
StatusFlag
Constructor for the StatusFlag object- Parameters:
label- Description of the Parametervalue- Description of the Parameterdescription- Description of the Parameter
-
StatusFlag
Constructor for the StatusFlag object that accepts aElementand parses it into label and description values.- Parameters:
statusFlagElement- Description of the Parameter- Throws:
Exception- if unable to parse into label and description values
-
-
Method Details
-
getLabel
Gets the label attribute of the StatusFlag object- Returns:
- The label value
-
getValue
Gets the value attribute of the StatusFlag object- Returns:
- The value value
-
getDescription
Gets the description attribute of the StatusFlag object- Returns:
- The description value
-
toString
Description of the Method
-