Package org.dlese.dpc.schemedit.config
Class StatusFlags
java.lang.Object
org.dlese.dpc.schemedit.config.StatusFlags
- All Implemented Interfaces:
Serializable
Hold a tuple of status value and accompanying decription.
- Author:
- ostwald
$Id $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringDescription of the Fieldstatic final StringDescription of the Fieldstatic final StatusFlagDescription of the Fieldstatic final Stringstatic final Stringstatic final StringDescription of the Fieldstatic final StatusFlagDescription of the Fieldstatic final Stringstatic final StatusFlagstatic final StringDescription of the Fieldstatic final StatusFlagDescription of the Field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringgetCollection(String statusValue) Derives a collection key from a final status value string.static final StatusFlaggetFinalStatusFlag(String label, String collection) Gets the finalStatusFlag attribute of the StatusFlags classstatic final StringgetFinalStatusValue(String collection) Creates a final status value string based on given collection key.static final booleanDetermines whether the given string is a final status value, and therefore provides a means of identifying "final status flags"static voidThe main program for the StatusFlags classstatic final ListDescription of the Method
-
Field Details
-
DCS_SPECIAL
- See Also:
-
UNKNOWN_STATUS
Description of the Field- See Also:
-
NEW_STATUS
Description of the Field- See Also:
-
IMPORTED_STATUS
Description of the Field- See Also:
-
NDR_IMPORTED_STATUS
- See Also:
-
NDR_EXPORTED_STATUS
- See Also:
-
RECOMMENDED_STATUS
- See Also:
-
DEFAULT_FINAL_STATUS
Description of the Field- See Also:
-
UNKNOWN_STATUS_FLAG
Description of the Field -
NEW_STATUS_FLAG
Description of the Field -
IMPORTED_STATUS_FLAG
Description of the Field -
RECOMMENDED_STATUS_FLAG
-
-
Constructor Details
-
StatusFlags
public StatusFlags()
-
-
Method Details
-
reservedStatusLabels
Description of the Method- Returns:
- Description of the Return Value
-
getFinalStatusValue
Creates a final status value string based on given collection key.The status value is created by inserting the collection key into the FINAL_STATUS_VALUE_TEMPLATE. For example, for the collection key, "dcc", the final status value would be "_|-final-dcc-|_" "
- Parameters:
collection- Description of the Parameter- Returns:
- The finalStatusValue value
-
getFinalStatusFlag
Gets the finalStatusFlag attribute of the StatusFlags class- Parameters:
label- Description of the Parametercollection- Description of the Parameter- Returns:
- The finalStatusFlag value
-
getCollection
Derives a collection key from a final status value string.- Parameters:
statusValue- Description of the Parameter- Returns:
- The collection value
-
isFinalStatusValue
Determines whether the given string is a final status value, and therefore provides a means of identifying "final status flags"- Parameters:
s- Description of the Parameter- Returns:
- true if a collection key can be derived from the given string.
-
main
The main program for the StatusFlags class- Parameters:
args- The command line arguments
-