public interface IPluginElement extends IPluginParent
| Modifier and Type | Field and Description |
|---|---|
static String |
P_ATTRIBUTE
A property name that will be used to notify individual
change in an element's attribute.
|
static String |
P_ATTRIBUTES
A property name that will be used to notify
about global replacement of the element's attributes.
|
static String |
P_TEXT
A property name that will be used to notify
about element body text change.
|
P_SIBLING_ORDERP_NAME| Modifier and Type | Method and Description |
|---|---|
IPluginElement |
createCopy()
Creates an identical copy of this XML element.
|
IPluginAttribute |
getAttribute(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
|
Object |
getElementInfo()
Returns the schema for this element.
|
String |
getText()
Returns the body text of this element.
|
void |
setAttribute(String name,
String value)
Sets the attribute with the provided name
to the provided value.
|
void |
setText(String text)
Sets the body text of this element
to the provided value.
|
add, add, getChildCount, getChildren, getIndexOf, remove, swapgetModel, getName, getParent, getPluginBase, getPluginModel, getResourceString, getTranslatedName, isInTheModel, isValid, setInTheModel, setNamegetAdapterstatic final String P_TEXT
static final String P_ATTRIBUTES
static final String P_ATTRIBUTE
IPluginElement createCopy()
IPluginAttribute getAttribute(String name)
name - the name of the attributeIPluginAttribute[] getAttributes()
int getAttributeCount()
String getText()
Object getElementInfo()
This information is exposed here as implementation side-effect and should not be used by clients.
void setAttribute(String name, String value) throws CoreException
name - the name of the attributevalue - the value to be setCoreExceptionvoid setText(String text) throws CoreException
text - the new body text of this elementCoreExceptionCopyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.