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

String org::openscience::cdk::iupac::parser::MoleculeBuilder::getMetalAtomicSymbol ( String  metalName  )  [inline, package]

Translates a metal's name into it's atomic symbol.

Parameters:
metalName The name of the metal, e.g. lead
Returns:
The given metal's atomic symbol e.g. Pb or null if none exist.

Definition at line 400 of file MoleculeBuilder.java.

Referenced by addFunGroup().

    {
        if (metalName == "aluminium")
        {
            return "Al";
        }
        else if (metalName == "magnesium" )
        {
            return "Mg";
        }
        else if (metalName == "gallium")
        {
            return "Ga";
        }
        else if (metalName == "indium")
        {
            return "In";
        }
        else if (metalName == "thallium")
        {
            return "Tl";
        }
        else if (metalName == "germanium")
        {
            return "Ge";
        }
        else if (metalName == "tin")
        {
            return "Sn";
        }
        else if (metalName == "lead")
        {
            return "Pb";
        }
        else if (metalName == "arsenic")
        {
            return "As";
        }
        else if (metalName == "antimony")
        {
            return "Sb";
        }
        else if (metalName == "bismuth")
        {
            return "Bi";
        }        

        return null;
    }


Generated by  Doxygen 1.6.0   Back to index