1 9 10 package org.eclipse.help.internal.xhtml; 11 12 import org.w3c.dom.Element ; 13 14 15 public class UAInclude extends AbstractUAElement { 16 17 protected static final String TAG_INCLUDE = "include"; protected static final String ATT_PATH = "path"; 22 private static final String ATT_MERGE_STYLE = "merge-style"; 24 private String path; 25 private boolean mergeStyle = false; 26 27 public UAInclude(Element element) { 28 path = getAttribute(element, ATT_PATH); 29 String mergeStyleString = getAttribute(element, ATT_MERGE_STYLE); 30 mergeStyle = (mergeStyleString != null && mergeStyleString.equalsIgnoreCase("true")) ? true : false; } 32 33 34 37 public boolean getMergeStyle() { 38 return mergeStyle; 39 } 40 41 44 public String getPath() { 45 return path; 46 } 47 48 49 50 } 51 | Popular Tags |