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 Details

    • Options

      public Options()
  • Method Details

    • getMappingStyle

      public Mapper.MappingStyle getMappingStyle()
      Returns:
      the mappingStyle
    • setMappingStyle

      public AutoMapper.Options setMappingStyle(Mapper.MappingStyle mappingStyle)
      Parameters:
      mappingStyle - the mappingStyle to set
      Returns:
      this option object
      See Also:
    • isMarkBonds

      public boolean isMarkBonds()
      Returns:
      the markBonds
    • setMarkBonds

      public AutoMapper.Options setMarkBonds(boolean markBonds)
      Default value false
      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 value true
      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 value Integer.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