Class WekaClassDescriptionGenerator

    • Constructor Detail

      • WekaClassDescriptionGenerator

        public WekaClassDescriptionGenerator()
    • Method Detail

      • handles

        public boolean handles​(Class cls)
        Checks whether this class is handled by this generator.
        Parameters:
        cls - the class to check
        Returns:
        true if handled
      • toString

        protected String toString​(PropertyDescriptor descriptor,
                                  Class baseClass,
                                  Object obj)
        Turns the object into a string.
        Parameters:
        descriptor - the current property descriptor
        baseClass - the base class
        obj - the object itself
        Returns:
        the string representation
      • generate

        public Map<String,​Object> generate​(Object obj)
        Generates the description for the object.
        Parameters:
        obj - the object to process
        Returns:
        the description, null if failed to generate