public Element saveAsXML() { Element retVal = new Element("probabilityGenerator"); retVal.setAttribute("type", getClass().getName()); retVal.addElement(XMLUtilities.writeInt("direction", direction)); retVal.addElement(XMLUtilities.writeDouble("lambda", lambda)); retVal.addElement(XMLUtilities.writeBoolean("lambdaTableEnabled", lambdaTableEnabled)); retVal.addElement(lambdaTable.saveAsXML()); return retVal; }
public electric.xml.Element saveAsXML() { Element retVal = new Element("udo"); retVal.addElement("opcodeName").setText(opcodeName); retVal.addElement("outTypes").setText(outTypes); retVal.addElement("inTypes").setText(inTypes); retVal.addElement("codeBody").setText(codeBody); retVal.addElement("comments").setText(comments); return retVal; }
/* * (non-Javadoc) * * @see blue.orchestra.blueSynthBuilder.BlueSynthBuilderObject#saveAsXML() */ public Element saveAsXML() { Element retVal = getBasicXML(this); retVal.addElement("label").setText(label); return retVal; }
public Element saveAsXML(Map<Object, String> objRefMap) { Element retVal = SoundObjectUtilities.getBasicXML(this); for (Iterator iter = lines.iterator(); iter.hasNext(); ) { Line line = (Line) iter.next(); retVal.addElement(line.saveAsXML()); } return retVal; }
@Override public Element saveAsXML() { Element retVal = new Element("generator"); retVal.setAttribute("type", getClass().getName()); retVal.addElement(XMLUtilities.writeInt("listType", getListType())); retVal.addElement(XMLUtilities.writeInt("index", index)); retVal.addElement(XMLUtilities.writeInt("direction", direction)); Element items = new Element("listItems"); for (Iterator it = listItems.iterator(); it.hasNext(); ) { Double item = (Double) it.next(); items.addElement("item").setText(item.toString()); } retVal.addElement(items); return retVal; }
public Element saveAsXML() { Element retVal = new Element("udoLibrary"); retVal.addElement(rootUDOCategory.saveAsXML()); return retVal; }