Class QueryBond

java.lang.Object
chemaxon.struc.MolBond
chemaxon.struc.QueryBond
All Implemented Interfaces:
StereoConstants, Serializable

@PublicApi public class QueryBond extends MolBond
Chemical bond.
Since:
Marvin 3.4, 06/04/2004
See Also:
  • Constructor Details

    • QueryBond

      public QueryBond(MolAtom a1, MolAtom a2)
      Construct an any bond between two atoms.
      Parameters:
      a1 - the first atom
      a2 - the second atom
    • QueryBond

      public QueryBond(MolAtom a1, MolAtom a2, int flags)
      Construct an any bond between two atoms.
      Parameters:
      a1 - the first atom
      a2 - the second atom
      flags - bond type and other flags
    • QueryBond

      public QueryBond(MolAtom a1, MolAtom a2, String s)
      Construct a query bond between two atoms.
      Parameters:
      a1 - the first atom
      a2 - the second atom
      s - the query string
    • QueryBond

      public QueryBond(QueryBond b)
      Copy constructor.
      Parameters:
      b - the original bond
      Since:
      3.5.2, 12/15/2004
  • Method Details

    • getQuerystr

      public String getQuerystr()
      Gets the query properties.
      Overrides:
      getQuerystr in class MolBond
      Returns:
      the query string
    • setQuerystr

      public void setQuerystr(String s)
      Sets the query string.
      Parameters:
      s - the query string
    • haveEqualProperties

      public boolean haveEqualProperties(MolBond e)
      Checks if two bonds have the same properties.
      Overrides:
      haveEqualProperties in class MolBond
      Returns:
      true if they have the same properties, false otherwise
      Since:
      Marvin 3.4.1, 07/21/2004
    • cloneBond

      public MolBond cloneBond(MolAtom a1, MolAtom a2)
      Clones this bond. Query string, bond type, stereo, topology and reacting center information are cloned with the bond.
      Overrides:
      cloneBond in class MolBond
      Parameters:
      a1 - new end atom 1
      a2 - new end atom 2
      Returns:
      the clone
      Since:
      Marvin 4.1, 09/22/2005
    • clone

      public Object clone()
      Make a copy of this object. Query string, bond type, stereo, topology and reacting center information are cloned with the bond.
      Overrides:
      clone in class MolBond
      Returns:
      the clone