Package chemaxon.struc
Class ValenceCheckOptions.Builder
java.lang.Object
chemaxon.struc.ValenceCheckOptions.Builder
- Enclosing class:
ValenceCheckOptions
Builder for ValenceCheckOptions.
- Since:
- version 6.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aValenceCheckOptionsobject.setLocalAromaticChecking(boolean localAromaticCheck) Sets local aromatic checking option.setTraditionalNitrogenAllowed(boolean traditionalNAllowed) Sets the traditional way of checking ylidene and nitro groups.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setLocalAromaticChecking
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
Sets the traditional way of checking ylidene and nitro groups. The default is true.- Parameters:
traditionalNAllowed- If true, then the N inCN(=O)=O,CN(C)(C)=O,CN(=C)=Oandc1ccccn1=Oare accepted. If false, they are marked as valence error.
-
build
Builds aValenceCheckOptionsobject.- Returns:
- the built
ValenceCheckOptionsobject
-