01: /*******************************************************************************
02: * Copyright (c) 2000, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core.text;
11:
12: import java.io.Serializable;
13:
14: import org.eclipse.core.runtime.CoreException;
15:
16: public interface IDocumentAttributeNode extends IDocumentRange,
17: Serializable, IDocumentXMLNode {
18:
19: // Used by text edit operations
20:
21: void setEnclosingElement(IDocumentElementNode node);
22:
23: IDocumentElementNode getEnclosingElement();
24:
25: void setNameOffset(int offset);
26:
27: int getNameOffset();
28:
29: void setNameLength(int length);
30:
31: int getNameLength();
32:
33: void setValueOffset(int offset);
34:
35: int getValueOffset();
36:
37: void setValueLength(int length);
38:
39: int getValueLength();
40:
41: String getAttributeName();
42:
43: String getAttributeValue();
44:
45: void setAttributeName(String name) throws CoreException;
46:
47: void setAttributeValue(String value) throws CoreException;
48:
49: String write();
50:
51: // Not used by text edit operations
52: public void reconnect(IDocumentElementNode parent);
53:
54: }
|