Class ValenceCheckOptions.Builder

java.lang.Object
chemaxon.struc.ValenceCheckOptions.Builder
Enclosing class:
ValenceCheckOptions

public static class ValenceCheckOptions.Builder extends Object
Builder for ValenceCheckOptions.
Since:
version 6.2
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setLocalAromaticChecking

      public ValenceCheckOptions.Builder setLocalAromaticChecking(boolean localAromaticCheck)
      Sets local aromatic checking option. The default is true.
      Parameters:
      localAromaticCheck - If set to true, ambiguous aromatic atoms are ignored in valence calculations: atoms behaving like aromatic Nitrogens (e.g. N, O+ or C-) or Borons (e.g. B, C+).
    • setTraditionalNitrogenAllowed

      public ValenceCheckOptions.Builder setTraditionalNitrogenAllowed(boolean traditionalNAllowed)
      Sets the traditional way of checking ylidene and nitro groups. The default is true.
      Parameters:
      traditionalNAllowed - If true, then the N in CN(=O)=O, CN(C)(C)=O, CN(=C)=O and c1ccccn1=O are accepted. If false, they are marked as valence error.
    • build

      public ValenceCheckOptions build()
      Builds a ValenceCheckOptions object.
      Returns:
      the built ValenceCheckOptions object