Class BaseObjectParsing


  • public class BaseObjectParsing
    extends AbstractParsing
    For parsing BaseObject (and derived) objects.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • BaseObjectParsing

        public BaseObjectParsing()
    • Method Detail

      • toString

        public static String toString​(AbstractOption option,
                                      Object object)
        Returns the BaseObject as string.
        Parameters:
        option - the current option
        object - the BaseObject object to convert
        Returns:
        the generated string
      • determineClass

        public static Class determineClass​(Object obj)
        Determines the base class.
        Parameters:
        obj - the object to inspect
        Returns:
        the determined class
      • valueOf

        public static Object valueOf​(AbstractOption option,
                                     String str)
        Returns a BaseObject generated from the string.
        Parameters:
        option - the current option
        str - the string to convert to a BaseObject
        Returns:
        the generated BaseObject