Example #1
0
  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;
  }
Example #2
0
  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;
  }
Example #3
0
  /*
   * (non-Javadoc)
   *
   * @see blue.orchestra.blueSynthBuilder.BlueSynthBuilderObject#saveAsXML()
   */
  public Element saveAsXML() {
    Element retVal = getBasicXML(this);

    retVal.addElement("label").setText(label);

    return retVal;
  }
Example #4
0
  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;
  }
Example #5
0
  @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;
  }
Example #6
0
  public Element saveAsXML() {
    Element retVal = new Element("udoLibrary");
    retVal.addElement(rootUDOCategory.saveAsXML());

    return retVal;
  }