Class StatusFlags

java.lang.Object
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:
  • Field Details

  • Constructor Details

    • StatusFlags

      public StatusFlags()
  • Method Details

    • 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