1 /*******************************************************************************
2  *  Copyright (c) 2000, 2008 IBM Corporation and others.
3  *
4  *  This program and the accompanying materials
5  *  are made available under the terms of the Eclipse Public License 2.0
6  *  which accompanies this distribution, and is available at
7  *  https://www.eclipse.org/legal/epl-2.0/
8  *
9  *  SPDX-License-Identifier: EPL-2.0
10  *
11  *  Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.pde.internal.core.text;
15 
16 import java.io.Serializable;
17 import org.eclipse.core.runtime.CoreException;
18 
19 public interface IDocumentAttributeNode extends IDocumentRange, Serializable, IDocumentXMLNode {
20 
21 	// Used by text edit operations
22 
setEnclosingElement(IDocumentElementNode node)23 	void setEnclosingElement(IDocumentElementNode node);
24 
getEnclosingElement()25 	IDocumentElementNode getEnclosingElement();
26 
setNameOffset(int offset)27 	void setNameOffset(int offset);
28 
getNameOffset()29 	int getNameOffset();
30 
setNameLength(int length)31 	void setNameLength(int length);
32 
getNameLength()33 	int getNameLength();
34 
setValueOffset(int offset)35 	void setValueOffset(int offset);
36 
getValueOffset()37 	int getValueOffset();
38 
setValueLength(int length)39 	void setValueLength(int length);
40 
getValueLength()41 	int getValueLength();
42 
getAttributeName()43 	String getAttributeName();
44 
getAttributeValue()45 	String getAttributeValue();
46 
setAttributeName(String name)47 	void setAttributeName(String name) throws CoreException;
48 
setAttributeValue(String value)49 	void setAttributeValue(String value) throws CoreException;
50 
write()51 	String write();
52 
53 	// Not used by text edit operations
reconnect(IDocumentElementNode parent)54 	public void reconnect(IDocumentElementNode parent);
55 
56 }
57