/** * Creates a DOM representation of the object. Result is appended to the Node <code>parent</code>. * * @param parent */ public void makeElement(Node parent) { Document doc; if (parent instanceof Document) { doc = (Document) parent; } else { doc = parent.getOwnerDocument(); } Element element = doc.createElement("center"); int size; URelaxer.setElementPropertyByString(element, "ra", ra); URelaxer.setElementPropertyByString(element, "decl", decl); parent.appendChild(element); }
/** * Creates a DOM representation of the object. Result is appended to the Node <code>parent</code>. * * @param parent */ public void makeElement(Node parent) { Document doc; if (parent instanceof Document) { doc = (Document) parent; } else { doc = parent.getOwnerDocument(); } Element element = doc.createElementNS("http://www.asahi-net.or.jp/~cs8k-cyu/bulletml", "direction"); rNSContext_.setupNamespace(element); URelaxer.setElementPropertyByString(element, this.content_); int size; if (this.type_ != null) { URelaxer.setAttributePropertyByString(element, "type", this.type_); } parent.appendChild(element); }