use of doc.attributes.ListAttribute in project OpenNotebook by jaltekruse.
the class MathObject method exportToXML.
public String exportToXML() {
String output = "";
output += "<" + getType() + ">\n";
for (MathObjectAttribute mAtt : attributes) {
output += mAtt.exportToXML();
}
for (ListAttribute lAtt : attrLists) {
output += lAtt.exportToXML();
}
output += "</" + getType() + ">\n";
return output;
}
use of doc.attributes.ListAttribute in project OpenNotebook by jaltekruse.
the class MathObject method clone.
@Override
public MathObject clone() {
MathObject o = newInstanceWithType(getType());
o.setParentContainer(getParentContainer());
o.removeAllAttributes();
for (MathObjectAttribute mAtt : getAttributes()) {
o.addAttribute(mAtt.clone());
}
o.removeAllLists();
for (ListAttribute list : getLists()) {
o.addList(list.clone());
}
return o;
}
Aggregations