1 11 package org.eclipse.pde.internal.ui.model; 12 13 import java.io.*; 14 15 public interface IDocumentNode extends Serializable, IDocumentRange { 16 17 IDocumentNode getParentNode(); 18 void setParentNode(IDocumentNode node); 19 20 void addChildNode(IDocumentNode child); 21 void addChildNode(IDocumentNode child, int position); 22 IDocumentNode removeChildNode(IDocumentNode child); 23 IDocumentNode[] getChildNodes(); 24 25 void addTextNode(IDocumentTextNode textNode); 26 IDocumentTextNode getTextNode(); 27 void removeTextNode(); 28 29 int indexOf(IDocumentNode child); 30 IDocumentNode getChildAt(int index); 31 32 IDocumentNode getPreviousSibling(); 33 void setPreviousSibling(IDocumentNode sibling); 34 35 void swap(IDocumentNode child1, IDocumentNode child2); 36 37 void setXMLTagName(String tag); 38 String getXMLTagName(); 39 40 void setXMLAttribute(IDocumentAttribute attribute); 41 void setXMLAttribute(String name, String value); 42 String getXMLAttributeValue(String name); 43 44 IDocumentAttribute getDocumentAttribute(String name); 45 IDocumentAttribute[] getNodeAttributes(); 46 void removeDocumentAttribute(IDocumentAttribute attr); 47 48 boolean isErrorNode(); 49 void setIsErrorNode(boolean isErrorNode); 50 51 void setOffset(int offset); 52 void setLength(int length); 53 54 void setLineIndent(int indent); 55 int getLineIndent(); 56 57 String write(boolean indent); 58 String writeShallow(boolean terminate); 59 } 60 | Popular Tags |