Enum Aromatizer

    • Field Detail

      • IDENTITY

        public static final Aromatizer IDENTITY
        Identity transformer.
    • Method Detail

      • values

        public static Aromatizer[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Aromatizer c : Aromatizer.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Aromatizer valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getAromatizationMethod

        public com.chemaxon.search.AromatizationMethod getAromatizationMethod()
        Specified by:
        getAromatizationMethod in interface com.chemaxon.search.transformation.AromatizationDataProvider
      • transform

        public com.chemaxon.search.transformation.AtomIndexMapper transform​(Molecule m)
        Description copied from interface: Transformer

        Transforms a Molecule. The molecule object is changed during the transformation, the mappings between old and new atom indexes are returned by the transformation.

        TODO: revise this interface, do we really want to force implementations to change the input molecule rather than return a one?
        Specified by:
        transform in interface Transformer
        Parameters:
        m - the molecule
        Returns:
        AtomIndexMapper between old and new atom indexes
      • fromMethod

        public static Aromatizer fromMethod​(com.chemaxon.search.AromatizationMethod method)
        Gets the aromatizer-transformer corresponding to the specified aromatization method
        Parameters:
        method - the specified aromatization method.
        Returns:
        returns an Aromatizer corresponding to the specified aromatization method