KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > model > IDocumentNode


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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 JavaDoc tag);
38     String JavaDoc getXMLTagName();
39     
40     void setXMLAttribute(IDocumentAttribute attribute);
41     void setXMLAttribute(String JavaDoc name, String JavaDoc value);
42     String JavaDoc getXMLAttributeValue(String JavaDoc name);
43     
44     IDocumentAttribute getDocumentAttribute(String JavaDoc 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 JavaDoc write(boolean indent);
58     String JavaDoc writeShallow(boolean terminate);
59 }
60
Popular Tags