Class SymbolSetQueryAtom

  • All Implemented Interfaces:
    Cloneable, IAtom, IAtomType, ICDKObject, IChemObject, IElement, IIsotope, IQueryAtom

    @Deprecated
    public class SymbolSetQueryAtom
    extends QueryAtom
    implements IQueryAtom
    Deprecated.
    Use new Expr(Element, 6).and(new Expr(Element, 8)) etc
    A QueryAtom that matches all symbols in this container. You may add symbols to this container. This QueryAtom will only give a match if it contains the symbol of the Atom to match (example: add "F", "Cl", "Br", "I" to get a match for the most common halogens).
    Author:
    kha
    See Also:
    InverseSymbolSetQueryAtom
    Source code:
    main
    Belongs to CDK module:
    isomorphism
    Created on:
    2004-09-16
    • Constructor Detail

      • SymbolSetQueryAtom

        public SymbolSetQueryAtom​(IChemObjectBuilder builder)
        Deprecated.
        Constructor for the SymbolSetQueryAtom object
    • Method Detail

      • setOperator

        public void setOperator​(String str)
        Deprecated.
      • matches

        public boolean matches​(IAtom atom)
        Deprecated.
        The matches implementation of the QueryAtom interface.
        Specified by:
        matches in interface IQueryAtom
        Overrides:
        matches in class QueryAtom
        Parameters:
        atom - The atom to be matched by this QueryAtom
        Returns:
        true if Atom matched
      • addSymbol

        public void addSymbol​(String symbol)
        Deprecated.
        Add a symbol to this QueryAtom
        Parameters:
        symbol - The symbol to add
      • removeSymbol

        public void removeSymbol​(String symbol)
        Deprecated.
        Remove a symbol from this QueryAtom
        Parameters:
        symbol - The symbol to remove
      • hasSymbol

        public boolean hasSymbol​(String symbol)
        Deprecated.
        Check whether a symbol is already registered
        Parameters:
        symbol - The symbol to check for
        Returns:
        true if symbol already registered
      • getSymbolSet

        public Set<String> getSymbolSet()
        Deprecated.
        Retrieve the Set of symbols
        Returns:
        The symbol Set
      • toString

        public String toString()
        Deprecated.
        The toString method
        Specified by:
        toString in interface IChemObject
        Overrides:
        toString in class Object
        Returns:
        The String representation of this object.