Logo Search packages:      
Sourcecode: cdk version File versions  Download package

void org::openscience::cdk::ChemObject::setProperties ( Hashtable  properties  )  [inline, inherited]

Sets the properties of this object.

Parameters:
properties a Hashtable specifying the property values
See also:
getProperties

Implements org::openscience::cdk::interfaces::IChemObject.

Reimplemented in org::openscience::cdk::debug::DebugAminoAcid, org::openscience::cdk::debug::DebugAtom, org::openscience::cdk::debug::DebugAtomContainer, org::openscience::cdk::debug::DebugAtomContainerSet, org::openscience::cdk::debug::DebugAtomParity, org::openscience::cdk::debug::DebugAtomType, org::openscience::cdk::debug::DebugBioPolymer, org::openscience::cdk::debug::DebugBond, org::openscience::cdk::debug::DebugChemFile, org::openscience::cdk::debug::DebugChemModel, org::openscience::cdk::debug::DebugChemObject, org::openscience::cdk::debug::DebugChemSequence, org::openscience::cdk::debug::DebugCrystal, org::openscience::cdk::debug::DebugElectronContainer, org::openscience::cdk::debug::DebugElement, org::openscience::cdk::debug::DebugIsotope, org::openscience::cdk::debug::DebugLonePair, org::openscience::cdk::debug::DebugMapping, org::openscience::cdk::debug::DebugMolecule, org::openscience::cdk::debug::DebugMoleculeSet, org::openscience::cdk::debug::DebugMonomer, org::openscience::cdk::debug::DebugPolymer, org::openscience::cdk::debug::DebugPseudoAtom, org::openscience::cdk::debug::DebugReaction, org::openscience::cdk::debug::DebugReactionSet, org::openscience::cdk::debug::DebugRing, org::openscience::cdk::debug::DebugSingleElectron, and org::openscience::cdk::debug::DebugStrand.

Definition at line 410 of file ChemObject.java.

References org::openscience::cdk::ChemObject::lazyProperties(), and org::openscience::cdk::ChemObject::notifyChanged().

      {
            Enumeration keys = properties.keys();
            while (keys.hasMoreElements())
            {
                  Object key = keys.nextElement();
                  lazyProperties().put(key, properties.get(key));
            }
            notifyChanged();
      }


Generated by  Doxygen 1.6.0   Back to index