Enum Class Aromatizer
- All Implemented Interfaces:
com.chemaxon.search.transformation.AromatizationDataProvider
,Transformer
,Serializable
,Comparable<Aromatizer>
,java.lang.constant.Constable
@PublicApi
public enum Aromatizer
extends Enum<Aromatizer>
implements Transformer, com.chemaxon.search.transformation.AromatizationDataProvider
Aromatizer transformer.
Performs aromatization according to the specified method.
- Since:
- JChem 5.12
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Aromatizer
fromMethod
(AromatizationMethod method) Gets the aromatizer-transformer corresponding to the specified aromatization methodTransforms aMolecule
.static Aromatizer
Returns the enum constant of this class with the specified name.static Aromatizer[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
AMBIGUOUS
-
BASIC
-
GENERAL
-
LOOSE
-
-
Field Details
-
IDENTITY
Identity transformer.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getAromatizationMethod
- Specified by:
getAromatizationMethod
in interfacecom.chemaxon.search.transformation.AromatizationDataProvider
-
transform
Description copied from interface:Transformer
Transforms a
TODO: revise this interface, do we really want to force implementations to change the input molecule rather than return a one?Molecule
. The molecule object is changed during the transformation, the mappings between old and new atom indexes are returned by the transformation.- Specified by:
transform
in interfaceTransformer
- Parameters:
m
- the molecule- Returns:
AtomIndexMapper
between old and new atom indexes
-
fromMethod
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
-