public void characterData(CMLStack xpath, char ch[], int start, int length) { String s = new String(ch, start, length).trim(); if (xpath.toString().endsWith("string/") && BUILTIN.equals("stereo")) { stereoGiven = true; if (s.trim().equals("W")) { logger.debug("CML W stereo found"); bondStereo.add("1"); } else if (s.trim().equals("H")) { logger.debug("CML H stereo found"); bondStereo.add("6"); } } else { super.characterData(xpath, ch, start, length); } }
public void startElement(CMLStack xpath, String uri, String local, String raw, Attributes atts) { logger.debug("MDLMol element: name"); super.startElement(xpath, uri, local, raw, atts); }
public void startDocument() { super.startDocument(); // cdo.startObject("Frame"); currentChemModel = currentChemFile.getBuilder().newChemModel(); }