|
Eclipse PDE Release 3.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface IPluginElement
Classes that implement this interface model the XML elements found in the plug-in model.
| Field Summary | |
|---|---|
static java.lang.String |
P_ATTRIBUTE
A property name that will be used to notify individual change in an element's attribute. |
static java.lang.String |
P_ATTRIBUTES
A property name that will be used to notify about global replacement of the element's attributes. |
static java.lang.String |
P_TEXT
A property name that will be used to notify about element body text change. |
| Fields inherited from interface org.eclipse.pde.core.plugin.IPluginParent |
|---|
P_SIBLING_ORDER |
| Fields inherited from interface org.eclipse.pde.core.plugin.IPluginObject |
|---|
P_NAME |
| Method Summary | |
|---|---|
IPluginElement |
createCopy()
Creates an identical copy of this XML element. |
IPluginAttribute |
getAttribute(java.lang.String name)
Returns an attribute object whose name matches the provided name. |
int |
getAttributeCount()
Returns the number of attributes in this element. |
IPluginAttribute[] |
getAttributes()
Returns all attributes currently defined in this element |
java.lang.Object |
getElementInfo()
Returns the schema for this element. |
java.lang.String |
getText()
Returns the body text of this element. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets the attribute with the provided name to the provided value. |
void |
setText(java.lang.String text)
Sets the body text of this element to the provided value. |
| Methods inherited from interface org.eclipse.pde.core.plugin.IPluginParent |
|---|
add, add, getChildCount, getChildren, getIndexOf, remove, swap |
| Methods inherited from interface org.eclipse.pde.core.plugin.IPluginObject |
|---|
getModel, getName, getParent, getPluginBase, getPluginModel, getResourceString, getTranslatedName, isInTheModel, isValid, setInTheModel, setName |
| Methods inherited from interface org.eclipse.pde.core.IWritable |
|---|
write |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
static final java.lang.String P_TEXT
static final java.lang.String P_ATTRIBUTES
static final java.lang.String P_ATTRIBUTE
| Method Detail |
|---|
IPluginElement createCopy()
IPluginAttribute getAttribute(java.lang.String name)
name - the name of the attribute
IPluginAttribute[] getAttributes()
int getAttributeCount()
java.lang.String getText()
java.lang.Object getElementInfo()
This information is exposed here as implementation side-effect and should not be used by clients.
void setAttribute(java.lang.String name,
java.lang.String value)
throws CoreException
name - the name of the attributevalue - the value to be set
CoreException
void setText(java.lang.String text)
throws CoreException
text - the new body text of this element
CoreException
|
Eclipse PDE Release 3.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved.