| Constructor and Description |
|---|
Element(java.lang.String pElementId,
ElementType pElementType)
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Removes this resource and all its children resources from cache.
|
java.util.Map<Property,IPropertyValue> |
getAllPropertyValues()
Get all property values of this resource.
|
IElementList |
getChildren(boolean pRefresh,
org.eclipse.core.runtime.IProgressMonitor pMon)
Deprecated.
|
IElementList |
getChildrenElementList()
Gets the element list of children that is created during
getChildren(boolean, IProgressMonitor, IElementListEntry). |
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 |
getName()
Gets the name of the resource.
|
java.lang.String |
getPropertySetName()
Get the propertySet name that has been associated with the element.
|
java.lang.String |
getTreeViewLabel()
Deprecated.
|
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 |
setName(java.lang.String pELementName)
Sets the name of the resource.
|
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. |
java.lang.String |
toString() |
addChildResource, addPropertyValue, addResourceChild, equals, getChildrenResources, getID, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, getValueOfLinkedProperty, hashCode, removeProperty, removeResourceChild, setPropertyValuesaddChildResource, addPropertyValue, addResourceChild, getChildrenResources, getID, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, removeResourceChild, setPropertyValuespublic Element(java.lang.String pElementId,
ElementType pElementType)
pElementId - the element IDpElementType - the element typepublic ElementType getElementType()
IElementgetElementType in interface IElementElementTypepublic void setElementType(ElementType pElementType)
IElementsetElementType in interface IElementpElementType - the new element typepublic void setName(java.lang.String pELementName)
IResourcepublic java.lang.String getName()
IResourcepublic java.lang.String getElementSuffix()
IElementgetElementSuffix in interface IElementpublic void refreshAllProperties(IExecutionContext pContext, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusException
IElementIExecutionContext can be used to include properties for the tool
execution.refreshAllProperties in interface IElementpContext - an execution context or nullpMon - progress monitorTaurusException - if an error occurs during refreshing the propertiespublic boolean isRefreshAllPropertyRequired()
IElementisRefreshAllPropertyRequired in interface IElementtrue, if a refresh of all the resource's properties
is necessary, false otherwise@Deprecated public IElementList getChildren(boolean pRefresh, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusCoreException
IElementgetChildren action was
configured in the TAURUS modelgetChildren in interface IElementpRefresh - whether to refresh the children first (true) or
return available cached children (false)pMon - progress monitornullTaurusCoreException - if an exception occurs while getting the children@Deprecated public java.lang.String getTreeViewLabel()
IElementisTreeViewLabel set to truegetTreeViewLabel in interface IElementpublic void delete()
throws TaurusCoreException
IResourcedelete in interface IElementdelete in interface IResourcedelete in class ResourceTaurusCoreException - if the deletion of the resource failsIResource.getChildrenResources()public void setRefreshAllPropertyRequired(boolean pRefreshAllPropertyRequired)
IElementgetAllProperties action
is required.setRefreshAllPropertyRequired in interface IElementpRefreshAllPropertyRequired - whether executing the getAllProperties action is
requiredpublic void setPropertySetName(java.lang.String pName)
IElementsetPropertySetName in interface IElementpName - the property set namepublic java.lang.String getPropertySetName()
IElementgetPropertySetName in interface IElementpublic java.util.Map<Property,IPropertyValue> getAllPropertyValues()
IResourceModifying the returned map will have no effect on the resource.
getAllPropertyValues in interface IResourcegetAllPropertyValues in class Resourcepublic void removeChildren()
throws TaurusCoreException
IElementremoveChildren in interface IElementTaurusCoreException - if the children could not be removed due to an exceptionpublic IElementList getChildrenElementList()
getChildren(boolean, IProgressMonitor, IElementListEntry). In
comparison to getChildren(...), this method does never execute an action
but simply returns the list (or null if the element has no
children).getChildrenElementList in interface IElementpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Set<IElementListEntry> getElementListEntries()
IElementThe returned list should not be modified by clients.
getElementListEntries in interface IElementCopyright © 2015 Micro Focus GmbH. All rights reserved.