Class FunctionalGroupUtilities.Selector

  • Enclosing class:
    FunctionalGroupUtilities

    public static class FunctionalGroupUtilities.Selector
    extends java.lang.Object

    A class to select which functional groups are copied or propagated or removed or not during operations on functional groups.

    • Constructor Summary

      Constructors 
      Constructor Description
      Selector​(boolean allSelected)
      Construct a selector with all functional groups selected or not selected.
      Selector​(java.lang.String[] arg, java.util.ArrayList<java.lang.String> remainder)
      Construct a selector with only functional groups named in arguments selected.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setAll​(boolean setting)
      Set all selectors to the specified setting.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • spatial

        public boolean spatial
      • framecontent

        public boolean framecontent
      • unclassified

        public boolean unclassified
    • Constructor Detail

      • Selector

        public Selector​(boolean allSelected)

        Construct a selector with all functional groups selected or not selected.

        Parameters:
        allSelected - true if all functional groups are selected rather than not selected on construction
      • Selector

        public Selector​(java.lang.String[] arg,
                        java.util.ArrayList<java.lang.String> remainder)

        Construct a selector with only functional groups named in arguments selected.

        Used to decode selectors from command line arguments.

        Strings recognized are -all|-spatial|-framecontent|-unclassified.

        Parameters:
        arg - command line arguments
        remainder - empty list to add remaining command line arguments after anything used was removed
    • Method Detail

      • setAll

        public void setAll​(boolean setting)

        Set all selectors to the specified setting.

        Parameters:
        setting - true if all functional groups are selected rather than not selected