| |
|
| org.eclipse.pde.core.plugin.IPluginElement
All known Subclasses: org.eclipse.pde.internal.core.text.plugin.PluginElementNode, org.eclipse.pde.internal.core.plugin.PluginElement,
IPluginElement | public interface IPluginElement extends IPluginParent(Code) | | Classes that implement this interface model the
XML elements found in the plug-in model.
|
Field Summary | |
String | P_ATTRIBUTE A property name that will be used to notify individual
change in an element's attribute. | String | P_ATTRIBUTES A property name that will be used to notify
about global replacement of the element's attributes. | String | P_TEXT A property name that will be used to notify
about element body text change. |
P_ATTRIBUTE | String P_ATTRIBUTE(Code) | | A property name that will be used to notify individual
change in an element's attribute.
|
P_ATTRIBUTES | String P_ATTRIBUTES(Code) | | A property name that will be used to notify
about global replacement of the element's attributes.
|
P_TEXT | String P_TEXT(Code) | | A property name that will be used to notify
about element body text change.
|
createCopy | IPluginElement createCopy()(Code) | | Creates an identical copy of this XML element.
The new element will share the same model and
the parent.
a copy of this element |
getAttribute | IPluginAttribute getAttribute(String name)(Code) | | Returns an attribute object whose name
matches the provided name.
Parameters: name - the name of the attribute the attribute object, or null if not found |
getAttributeCount | int getAttributeCount()(Code) | | Returns the number of attributes in this element.
number of attributes defined in this element |
getAttributes | IPluginAttribute[] getAttributes()(Code) | | Returns all attributes currently defined in this element
an array of attribute objects that belong to this element |
getElementInfo | Object getElementInfo()(Code) | | Returns the schema for this element.
This information is exposed here as implementation side-effect
and should not be used by clients.
the schema for this element or null if not found. |
getText | String getText()(Code) | | Returns the body text of this element.
body text of this element or null if not set. |
setAttribute | void setAttribute(String name, String value) throws CoreException(Code) | | Sets the attribute with the provided name
to the provided value. If attribute object
is not found, a new one will be created and
its value set to the provided value.
This method will throw a CoreException if
the model is not editable.
Parameters: name - the name of the attribute Parameters: value - the value to be set |
setText | void setText(String text) throws CoreException(Code) | | Sets the body text of this element
to the provided value. This method
will throw a CoreException if the
model is not editable.
Parameters: text - the new body text of this element |
|
|
|