1 11 package org.eclipse.pde.internal.core.text; 12 13 import java.io.Serializable ; 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 { 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 getAttributeName(); 37 String getAttributeValue(); 38 39 void setAttributeName(String name) throws CoreException; 40 void setAttributeValue(String value) throws CoreException; 41 42 String write(); 43 44 public void reconnect(ISharedPluginModel model, ISchema schema, IDocumentNode parent); 45 46 } 47 | Popular Tags |