public void endElement(String uri, String localName, String qName) throws SAXException { final String S_ProcName = "endElement"; assert qName.equals("JavaSybaseTableImplementation"); CFLibXmlCoreContext curContext = getParser().getCurContext(); if (!CFBamXmlLoader.getProcessSchema(curContext)) { return; } CFLibXmlCoreContext parentContext = curContext.getPrevContext(); ICFBamTableObj table; if (parentContext != null) { table = (ICFBamTableObj) parentContext.getNamedValue("Object"); } else { throw CFLib.getDefaultExceptionFactory() .newRuntimeException(getClass(), S_ProcName, "Scope must be an existing Table element"); } String text = curContext.getElementText(); ICFBamTableEditObj editTable = (ICFBamTableEditObj) table.beginEdit(); editTable.setOptionalJSybaseTableImplementation(text); editTable.update(); editTable.endEdit(); }
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException { final String S_ProcName = "startElement"; assert qName.equals("JavaEditObjMembers"); CFLibXmlCoreContext curContext = getParser().getCurContext(); if (!CFBamXmlLoader.getProcessSchema(curContext)) { return; } CFLibXmlCoreContext parentContext = curContext.getPrevContext(); ICFBamTableObj table; if (parentContext != null) { table = (ICFBamTableObj) parentContext.getNamedValue("Object"); } else { throw CFLib.getDefaultExceptionFactory() .newRuntimeException(getClass(), S_ProcName, "Scope must be an existing Table element"); } }