Package com.chemaxon.mapper
Class AutoMapper.Options
java.lang.Object
com.chemaxon.mapper.AutoMapper.Options
- Enclosing class:
- AutoMapper
Option object for set common options when mapping called by static way.
- Since:
- 6.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
setKeepMapping
(boolean keepMapping) Default valuetrue
setMappingStyle
(Mapper.MappingStyle mappingStyle) Default valueMapper.MappingStyle.COMPLETE
setMarkBonds
(boolean markBonds) Default valuefalse
setMaxThreadCount
(int maxThreadCount) Default valueInteger.MAX_VALUE
The number of threads used for mapping will be the minimum of maxThreadCount and the number of available processors.
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
getMappingStyle
- Returns:
- the mappingStyle
-
setMappingStyle
Default valueMapper.MappingStyle.COMPLETE
- Parameters:
mappingStyle
- the mappingStyle to set- Returns:
- this option object
- See Also:
-
isMarkBonds
public boolean isMarkBonds()- Returns:
- the markBonds
-
setMarkBonds
Default valuefalse
- Parameters:
markBonds
- the markBonds to set- Returns:
- this option object
-
isKeepMapping
public boolean isKeepMapping()- Returns:
- the keepMapping
-
setKeepMapping
Default valuetrue
- Parameters:
keepMapping
- the keepMapping to set- Returns:
- this option object
-
getMaxThreadCount
public int getMaxThreadCount()- Returns:
- the maxThreadCount
-
setMaxThreadCount
Default valueInteger.MAX_VALUE
The number of threads used for mapping will be the minimum of maxThreadCount and the number of available processors.- Parameters:
maxThreadCount
- the maxThreadCount to set- Returns:
- this option object
- Throws:
IllegalArgumentException
- when maxThreadCount less than 1
-