/** * Adds a value to the current element. Not really adding to this, per se, but setting the value * of an internally shifted currentObject's parent. TODO: should really be refactored more --Brian * * @param value Value being added to the current element */ public void addValue(String value) { // currentObject.parent.getValue().addElement(value); currentObject.parent.value = value; // assume this only happens once for each currentObject /* * I'm not sure if this gets called more than once per DataObject. * It's only called by SAX_XMLDecoder.character. * I'll assume it's called only once, since elsewhere in the toolkit, only one value is possible. * Warn me and kill the process disgracefully if otherwise. * WORKS well w/o this condition failing so far * --Brian */ // currentObject.parent.numInvocations_addValue++; // if (currentObject.parent.numInvocations_addValue > 1) { // System.err.println("DataObject " + currentObject.parent + "(" + // currentObject.parent.hashCode() + ").addValue(value) called more than once"); // System.exit(-1); // quit // } }