Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.xmlcml.simplecml
Class SimpleBond  view SimpleBond download SimpleBond.java

java.lang.Object
  extended byorg.xmlcml.simplecml.SimpleBond

public class SimpleBond
extends java.lang.Object

SimpleBond manages a subset of CML functionality for atoms. It lacks many of the more sophisticated setters and getters and exposes the bond children directly (e.g. order). It should only be used with SimpleMolecule and SimpleAtom.

Typical code:

	SimpleAtom bond = new SimpleBond();
	bond.atomRef1 = atom23;
	bond.atomRef2 = atom25;
	bond.order = "S";
	


Field Summary
 SimpleAtom atomRef1
          first atom in bond: default=null
 SimpleAtom atomRef2
          second atom in bond: default=null
(package private)  java.lang.String atomRefS1
          id for first atom in bond: default=null
(package private)  java.lang.String atomRefS2
          id for second atom in bond: default=null
 java.lang.String id
          id for bond default=null
 java.lang.String namespace
          namespace
 java.lang.String order
          order of bond ("S", "D", etc.): default=null
 java.lang.String stereo
          stereo for bond ("W", "H", etc.): default=null
 
Constructor Summary
SimpleBond()
          constructs a SimpleBond with default child values
SimpleBond(java.lang.String namespace)
          constructs a SimpleBond with default child values and namespace
 
Method Summary
 java.lang.String toCML(java.lang.String prefix)
          well-formed CML for a bond; uninitialised children are not included
 java.lang.String toString()
          diagnostic string for a bond
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public java.lang.String id
id for bond default=null


atomRefS1

java.lang.String atomRefS1
id for first atom in bond: default=null


atomRefS2

java.lang.String atomRefS2
id for second atom in bond: default=null


atomRef1

public SimpleAtom atomRef1
first atom in bond: default=null


atomRef2

public SimpleAtom atomRef2
second atom in bond: default=null


order

public java.lang.String order
order of bond ("S", "D", etc.): default=null


stereo

public java.lang.String stereo
stereo for bond ("W", "H", etc.): default=null


namespace

public java.lang.String namespace
namespace

Constructor Detail

SimpleBond

public SimpleBond()
constructs a SimpleBond with default child values


SimpleBond

public SimpleBond(java.lang.String namespace)
constructs a SimpleBond with default child values and namespace

Method Detail

toString

public java.lang.String toString()
diagnostic string for a bond


toCML

public java.lang.String toCML(java.lang.String prefix)
well-formed CML for a bond; uninitialised children are not included