1 11 package org.eclipse.help.internal.context; 12 import java.util.ArrayList ; 13 import java.util.List ; 14 15 import org.eclipse.help.internal.FilterableUAElement; 16 import org.xml.sax.*; 17 20 public abstract class ContextsNode extends FilterableUAElement { 21 public static final String CONTEXTS_ELEM = "contexts"; public static final String CONTEXT_ELEM = "context"; public static final String DESC_ELEM = "description"; public static final String RELATED_ELEM = "topic"; public static final String RELATED_HREF = "href"; public static final String RELATED_LABEL = "label"; 30 public static final String BOLD_CLOSE_TAG = "</@#$b>"; 34 public static final String BOLD_TAG = "<@#$b>"; public static final String DESC_TXT_BOLD = "b"; protected List children = new ArrayList (); 37 41 public abstract void build(ContextsBuilder builder); 42 45 public ContextsNode(Attributes attrs) { 46 addFilters(attrs); 47 } 48 54 public void addChild(ContextsNode child) { 55 children.add(children.size(), child); 56 } 57 60 public List getChildren() { 61 return children; 62 } 63 } 64 | Popular Tags |