Class BaseCommandLine

    • Constructor Detail

      • BaseCommandLine

        public BaseCommandLine()
        Initializes the string with length 0.
      • BaseCommandLine

        public BaseCommandLine​(String s)
        Initializes the object with the string to parse.
        Parameters:
        s - the string to parse
      • BaseCommandLine

        public BaseCommandLine​(Class cls)
        Initializes the object with the class to use.
        Parameters:
        cls - the class to use
      • BaseCommandLine

        public BaseCommandLine​(Object obj)
        Initializes the object with the commandline object to use.
        Parameters:
        obj - the object to use
    • Method Detail

      • isValid

        public boolean isValid​(String value)
        Checks whether the string value is a valid presentation for this class.
        Overrides:
        isValid in class AbstractBaseString
        Parameters:
        value - the string value to check
        Returns:
        true if non-null
      • getTipText

        public String getTipText()
        Returns a tool tip for the GUI editor (ignored if null is returned).
        Specified by:
        getTipText in class AbstractBaseString
        Returns:
        the tool tip
      • classnamePart

        public String classnamePart()
        Returns the classname part of the command-line.
        Returns:
        the classname
      • optionsPart

        public String optionsPart()
        Returns the options part of the command-line.
        Returns:
        the options
      • objectValue

        public Object objectValue()
        Returns the commandline as object.
        Returns:
        the instantiated object, null if invalid (or empty)