Package com.chemaxon.mapper
Class AutoMapper.Options
- java.lang.Object
-
- com.chemaxon.mapper.AutoMapper.Options
-
- Enclosing class:
- AutoMapper
public static final class AutoMapper.Options extends Object
Option object for set common options when mapping called by static way.- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description Options()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mapper.MappingStyle
getMappingStyle()
int
getMaxThreadCount()
boolean
isKeepMapping()
boolean
isMarkBonds()
AutoMapper.Options
setKeepMapping(boolean keepMapping)
Default valuetrue
AutoMapper.Options
setMappingStyle(Mapper.MappingStyle mappingStyle)
Default valueMapper.MappingStyle.COMPLETE
AutoMapper.Options
setMarkBonds(boolean markBonds)
Default valuefalse
AutoMapper.Options
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.
-
-
-
Method Detail
-
getMappingStyle
public Mapper.MappingStyle getMappingStyle()
- Returns:
- the mappingStyle
-
setMappingStyle
public AutoMapper.Options setMappingStyle(Mapper.MappingStyle mappingStyle)
Default valueMapper.MappingStyle.COMPLETE
- Parameters:
mappingStyle
- the mappingStyle to set- Returns:
- this option object
- See Also:
Mapper.MappingStyle
-
isMarkBonds
public boolean isMarkBonds()
- Returns:
- the markBonds
-
setMarkBonds
public AutoMapper.Options setMarkBonds(boolean markBonds)
Default valuefalse
- Parameters:
markBonds
- the markBonds to set- Returns:
- this option object
-
isKeepMapping
public boolean isKeepMapping()
- Returns:
- the keepMapping
-
setKeepMapping
public AutoMapper.Options setKeepMapping(boolean keepMapping)
Default valuetrue
- Parameters:
keepMapping
- the keepMapping to set- Returns:
- this option object
-
getMaxThreadCount
public int getMaxThreadCount()
- Returns:
- the maxThreadCount
-
setMaxThreadCount
public AutoMapper.Options 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.- Parameters:
maxThreadCount
- the maxThreadCount to set- Returns:
- this option object
- Throws:
IllegalArgumentException
- when maxThreadCount less than 1
-
-