2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2010 - Calixte DENIZET
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 package org.scilab.modules.helptools;
17 public class JavaHelpDocbookElement extends DocbookElement {
19 private StringBuilder mapIdContents;
20 private DocbookElement parent;
25 protected JavaHelpDocbookElement(String name, String uri, Map attributes) {
26 super(name, uri, attributes);
27 mapIdContents = new StringBuilder();
33 public DocbookElement getNewInstance(String name, String uri, Map attributes) {
34 return new JavaHelpDocbookElement(name, uri, attributes);
40 public void append(Object obj) {
41 if (obj instanceof String) {
42 mapIdContents.append((String) obj);
43 } else if (obj instanceof StringBuilder) {
44 mapIdContents.append((StringBuilder) obj);
58 public void setParent(DocbookElement elem) {
65 public DocbookElement getParent() {