Class AtomTypeChecker

    • Constructor Detail

      • AtomTypeChecker

        protected AtomTypeChecker​(StructureCheckerErrorType type)
        Parameterized constructor providing the possibility for descendants to initialize with their own error type.
        Parameters:
        type - is an instance is StructureCheckerErrorType
      • AtomTypeChecker

        public AtomTypeChecker()
        Default constructor.
      • AtomTypeChecker

        public AtomTypeChecker​(Map<String,​String> params)
        Parameterized constructor. If types parameter is given its value will be parsed and split along "," characters and all substring which represents a type will be search during the checking mechanism.
        Parameters:
        params - a Map instance which contains String pairs. Key is the name of the parameter.
    • Method Detail

      • check

        protected boolean check​(Molecule molecule,
                                MolAtom component)
        Description copied from class: ComponentChecker
        Checks if the component with index i has problem
        Specified by:
        check in class ComponentChecker<MolAtom>
        Parameters:
        molecule - is a Molecule instance
        component - the current component to check
        Returns:
        true if the component has problem, false otherwise
      • getTypes

        public List<String> getTypes()
        Returns the checked atom types
        Returns:
        the checked atom types
        Since:
        5.7
      • setTypes

        public void setTypes​(List<String> types)
        Sets the checked atom types
        Parameters:
        types - the new value
        Since:
        5.7