DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.config
Class StatusFlags

java.lang.Object
  extended by org.dlese.dpc.schemedit.config.StatusFlags
All Implemented Interfaces:
Serializable

public class StatusFlags
extends Object
implements Serializable

Hold a tuple of status value and accompanying decription.

Author:
ostwald

$Id $

See Also:
Serialized Form

Field Summary
static String DCS_SPECIAL
           
static String DEFAULT_FINAL_STATUS
          Description of the Field
static String IMPORTED_STATUS
          Description of the Field
static StatusFlag IMPORTED_STATUS_FLAG
          Description of the Field
static String NDR_EXPORTED_STATUS
           
static String NDR_IMPORTED_STATUS
           
static String NEW_STATUS
          Description of the Field
static StatusFlag NEW_STATUS_FLAG
          Description of the Field
static String RECOMMENDED_STATUS
           
static StatusFlag RECOMMENDED_STATUS_FLAG
           
static String UNKNOWN_STATUS
          Description of the Field
static StatusFlag UNKNOWN_STATUS_FLAG
          Description of the Field
 
Constructor Summary
StatusFlags()
           
 
Method Summary
static String getCollection(String statusValue)
          Derives a collection key from a final status value string.
static StatusFlag getFinalStatusFlag(String label, String collection)
          Gets the finalStatusFlag attribute of the StatusFlags class
static String getFinalStatusValue(String collection)
          Creates a final status value string based on given collection key.
static boolean isFinalStatusValue(String s)
          Determines whether the given string is a final status value, and therefore provides a means of identifying "final status flags"
static void main(String[] args)
          The main program for the StatusFlags class
static List reservedStatusLabels()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DCS_SPECIAL

public static final String DCS_SPECIAL
See Also:
Constant Field Values

UNKNOWN_STATUS

public static final String UNKNOWN_STATUS
Description of the Field

See Also:
Constant Field Values

NEW_STATUS

public static final String NEW_STATUS
Description of the Field

See Also:
Constant Field Values

IMPORTED_STATUS

public static final String IMPORTED_STATUS
Description of the Field

See Also:
Constant Field Values

NDR_IMPORTED_STATUS

public static final String NDR_IMPORTED_STATUS
See Also:
Constant Field Values

NDR_EXPORTED_STATUS

public static final String NDR_EXPORTED_STATUS
See Also:
Constant Field Values

RECOMMENDED_STATUS

public static final String RECOMMENDED_STATUS
See Also:
Constant Field Values

DEFAULT_FINAL_STATUS

public static final String DEFAULT_FINAL_STATUS
Description of the Field

See Also:
Constant Field Values

UNKNOWN_STATUS_FLAG

public static final StatusFlag UNKNOWN_STATUS_FLAG
Description of the Field


NEW_STATUS_FLAG

public static final StatusFlag NEW_STATUS_FLAG
Description of the Field


IMPORTED_STATUS_FLAG

public static final StatusFlag IMPORTED_STATUS_FLAG
Description of the Field


RECOMMENDED_STATUS_FLAG

public static final StatusFlag RECOMMENDED_STATUS_FLAG
Constructor Detail

StatusFlags

public StatusFlags()
Method Detail

reservedStatusLabels

public static final List reservedStatusLabels()
Description of the Method

Returns:
Description of the Return Value

getFinalStatusValue

public static final String getFinalStatusValue(String collection)
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

public static final StatusFlag getFinalStatusFlag(String label,
                                                  String collection)
Gets the finalStatusFlag attribute of the StatusFlags class

Parameters:
label - Description of the Parameter
collection - Description of the Parameter
Returns:
The finalStatusFlag value

getCollection

public static final String getCollection(String statusValue)
Derives a collection key from a final status value string.

Parameters:
statusValue - Description of the Parameter
Returns:
The collection value

isFinalStatusValue

public static final boolean isFinalStatusValue(String s)
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

public static void main(String[] args)
The main program for the StatusFlags class

Parameters:
args - The command line arguments

DLESE Tools
v1.6.0