KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > text > IDocumentAttribute


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 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.core.text;
12
13 import java.io.Serializable JavaDoc;
14
15 import org.eclipse.core.runtime.CoreException;
16 import org.eclipse.pde.core.plugin.ISharedPluginModel;
17 import org.eclipse.pde.internal.core.ischema.ISchema;
18
19 public interface IDocumentAttribute extends Serializable JavaDoc {
20     
21     void setEnclosingElement(IDocumentNode node);
22     IDocumentNode getEnclosingElement();
23     
24     void setNameOffset(int offset);
25     int getNameOffset();
26     
27     void setNameLength(int length);
28     int getNameLength();
29     
30     void setValueOffset(int offset);
31     int getValueOffset();
32     
33     void setValueLength(int length);
34     int getValueLength();
35     
36     String JavaDoc getAttributeName();
37     String JavaDoc getAttributeValue();
38     
39     void setAttributeName(String JavaDoc name) throws CoreException;
40     void setAttributeValue(String JavaDoc value) throws CoreException;
41     
42     String JavaDoc write();
43
44     public void reconnect(ISharedPluginModel model, ISchema schema, IDocumentNode parent);
45     
46 }
47
Popular Tags