public interface IElement extends IResource
ElementType.
Elements are representations of all software objects managed by AWM
applications. They are identified and persisted by IDs which are generated by
IDDefinitions. Only one IElement instance will be managed per element
ID, to ensure consistency on element changes (e.g. rename, delete, change of
an element property).
Elements are never directly contained in element lists, but
IElementListEntrys are.
They are managed by the IElementDirectory.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID_PREFIX
The cache ID prefix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Removes the Element entirely from TAURUS, including dependent Element
lists.
|
IElementList |
getChildren(boolean pRefresh,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Deprecated.
) is used instead. |
IElementList |
getChildrenElementList()
Gets the element list of children that is created during
getChildren(boolean, IProgressMonitor). |
java.util.Set<IElementListEntry> |
getElementListEntries()
Gets all element list entries for this element.
|
java.lang.String |
getElementSuffix()
Gets the suffix of this element.
|
ElementType |
getElementType()
Gets the element type of this element.
|
java.lang.String |
getPropertySetName()
Get the propertySet name that has been associated with the element.
|
java.lang.String |
getTreeViewLabel()
Deprecated.
unable to resolve element list entry properties. Use
IElementListEntry.getTreeViewLabel() instead. |
boolean |
isRefreshAllPropertyRequired()
Check if a refresh of all property values of this resource is necessary.
|
void |
refreshAllProperties(IExecutionContext pContext,
org.eclipse.core.runtime.IProgressMonitor pMon)
Executes the "GetAllProperties" action of the corresponding Element Type
to refresh the Properties of this IElement.
|
void |
removeChildren()
Removes the local cached children.
|
void |
setElementType(ElementType pElementType)
Sets the element type of this element.
|
void |
setPropertySetName(java.lang.String pName)
Set the propertySet'name that have been associated to the element.
|
void |
setRefreshAllPropertyRequired(boolean pRefreshAllPropertyRequired)
Sets the flag whether executing the
getAllProperties action
is required. |
addChildResource, addPropertyValue, addResourceChild, getAllPropertyValues, getChildrenResources, getID, getName, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, removeResourceChild, setName, setPropertyValuesstatic final java.lang.String ID_PREFIX
ElementType getElementType()
ElementTypevoid setElementType(ElementType pElementType)
pElementType - the new element typejava.lang.String getElementSuffix()
@Deprecated IElementList getChildren(boolean pRefresh, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws TaurusCoreException
) is used instead.getChildren action was
configured in the TAURUS modelpRefresh - whether to refresh the children first (true) or
return available cached children (false)pMonitor - progress monitornullTaurusCoreException - if an exception occurs while getting the childrenvoid removeChildren()
throws TaurusCoreException
TaurusCoreException - if the children could not be removed due to an exception@Deprecated java.lang.String getTreeViewLabel()
IElementListEntry.getTreeViewLabel() instead.isTreeViewLabel set to truevoid delete()
throws TaurusCoreException
Does not physically delete the Element from the remote system.
delete in interface IResourceTaurusCoreException - if deleting the element (or removing it from cache) failsIResource.getChildrenResources()void refreshAllProperties(IExecutionContext pContext, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusException
IExecutionContext can be used to include properties for the tool
execution.pContext - an execution context or nullpMon - progress monitorTaurusException - if an error occurs during refreshing the propertiesboolean isRefreshAllPropertyRequired()
true, if a refresh of all the resource's properties
is necessary, false otherwisevoid setRefreshAllPropertyRequired(boolean pRefreshAllPropertyRequired)
getAllProperties action
is required.pRefreshAllPropertyRequired - whether executing the getAllProperties action is
requiredvoid setPropertySetName(java.lang.String pName)
pName - the property set namejava.lang.String getPropertySetName()
IElementList getChildrenElementList()
getChildren(boolean, IProgressMonitor). In comparison to
getChildren(...), this method does never execute an action but simply
returns the list (or null if the element has no children).java.util.Set<IElementListEntry> getElementListEntries()
The returned list should not be modified by clients.
Copyright © 2015 Micro Focus GmbH. All rights reserved.