Class OpusBlockHelper.CommandlineData

  • All Implemented Interfaces:
    adams.core.logging.LoggingSupporter, adams.core.SizeOfHandler, Serializable
    Enclosing class:
    OpusBlockHelper

    public static class OpusBlockHelper.CommandlineData
    extends adams.core.logging.LoggingObject
    Encapsulates and parses a commandline string.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Raw

        protected String m_Raw
        the raw string.
      • m_Operation

        protected String m_Operation
        the operation.
      • m_Type

        protected String m_Type
        the type of the commandline.
    • Constructor Detail

      • CommandlineData

        public CommandlineData​(String raw)
        Initializes the object.
        Parameters:
        raw - the raw string
    • Method Detail

      • parse

        protected void parse()
        Parses the commandline.
      • getOperation

        public String getOperation()
        Returns the commandline operation.
        Returns:
        the operation
      • getType

        public String getType()
        Returns the operation type.
        Returns:
        the type
      • size

        public int size()
        Returns the number of values.
        Returns:
        the number of values
      • keySet

        public Set<String> keySet()
        Returns the keys of the values.
        Returns:
        the keys
      • has

        public boolean has​(String key)
        Checks whether the key is present.
        Parameters:
        key - the key to check
        Returns:
        true if present
      • get

        public String get​(String key)
        Returns the value associated with the key.
        Parameters:
        key - the key of the value to retrieve
        Returns:
        the value, null if not available
      • toString

        public String toString()
        Returns the raw data.
        Overrides:
        toString in class Object
        Returns:
        the raw datas