Class StructureFixerFactory


  • @Deprecated
    @PublicAPI
    public class StructureFixerFactory
    extends Object
    Deprecated.
    use CheckerFixerFactory instead
    This is a factory class providing functionality of creating StructureFixer instances by name.
    Since:
    Marvin 5.3
    • Field Detail

      • FIXERFACTORYCONFIG_XML

        public static final String FIXERFACTORYCONFIG_XML
        Deprecated.
        default fixer configuration file name
        See Also:
        Constant Field Values
    • Constructor Detail

      • StructureFixerFactory

        public StructureFixerFactory()
        Deprecated.
        Default constructor. At this case the default built-in configuration files will be used to discover the available StructureFixer classes and their properties.
      • StructureFixerFactory

        public StructureFixerFactory​(String path)
        Deprecated.
        Parameterized constructor. The given string represents the path of the xml configuration files which contains the actual list of the fixer classes.
        Parameters:
        path - is the path of the internal fixer configuration
      • StructureFixerFactory

        public StructureFixerFactory​(String path,
                                     String externalPath)
        Deprecated.
        Parameterized constructor. The given string represents the path of the xml configuration files which contains the actual list of the fixer classes.
        Parameters:
        path - is the path of the internal fixer configuration
        externalPath - is the path of the external fixer configuration
      • StructureFixerFactory

        public StructureFixerFactory​(InputStream internalConfigStream,
                                     InputStream externalConfigStream)
        Deprecated.
        Parameterized constructor. The given the streams contain the XML configuration which contains the actual lists of the fixer classes.
        Parameters:
        internalConfigStream - the stream containing the internal fixer configuration
        externalConfigStream - the stream containing the external fixer configuration
    • Method Detail

      • getFixer

        public StructureFixer getFixer​(String fixerId)
        Deprecated.
        This method returns a StructureFixer instance identified by fixerId parameters
        Parameters:
        fixerId - a String object which is the unique id of the StructureFixer class
        Returns:
        a StructureFixer instance if there is any identified by the fixerName parameter, null otherwise
      • getFixers

        public List<StructureFixer> getFixers()
        Deprecated.
        This method returns all StructureFixer instances available by the current configuration
        Returns:
        all StructureFixer instances available by the current configuration
      • reload

        public void reload()
        Deprecated.
        Forces reload of configuration on next fixer list request.
        Since:
        5.12
      • reloadDefaults

        public static void reloadDefaults()
        Deprecated.
        Forces reload of factory defaults.
        Since:
        5.12