cdkbook

ChemObjectIdentifiers.groovy

Source code:

@Grab(group='org.openscience.cdk', module='cdk-bundle', version='2.9')

 import org.openscience.cdk.*;

butane = new AtomContainer();
butane.setID("cdkbook000000001")
print "ID: " + butane.getID()

Output:

ID: cdkbook000000001