com.ibm.xtools.uml.msl.internal.resources
Class UnknownLogicalUMLResource
java.lang.Object
com.ibm.xtools.uml.msl.internal.resources.LogicalUMLResource
com.ibm.xtools.uml.msl.internal.resources.UnknownLogicalUMLResource
- All Implemented Interfaces:
- ILogicalUMLResource, ILogicalResource
public class UnknownLogicalUMLResource
- extends LogicalUMLResource
Wrapper class used for resources unknown to the LogicalUMLResourceProvider.
It is a convenience class so that the clients asking for logical resource do
not have to handle case when the provider returns null. The wrapper will
actually work to a certain degree - it will use the specified resource as the
only resource comprising the logical resource.
| Methods inherited from class com.ibm.xtools.uml.msl.internal.resources.LogicalUMLResource |
addFragement, contains, equals, getAllFragments, getAllLoadedResources, getAllResources, getHierarchicalStructure, getInternalHierarchicalStructure, getLoadedFragments, getModifiedResources, getRootResource, hashCode, isModified, removeFragement, reset |
UnknownLogicalUMLResource
public UnknownLogicalUMLResource(Resource rootResource)
- Constructor
- Parameters:
rootResource - The root resource
addFragments
public void addFragments(Resource resource,
List resourceList,
boolean includeClosed)
- Description copied from class:
LogicalUMLResource
- Adds fragments of the specified resource to the resource list. The
includeClosed flag indicates if the closed resources should be included
in the list.
- Specified by:
addFragments in interface ILogicalUMLResource- Overrides:
addFragments in class LogicalUMLResource
- Parameters:
resource - Resource whose fragments are added to the listresourceList - The resource listincludeClosed - The indicator if the closed resources should be included in
the list- See Also:
LogicalUMLResource.addFragments(org.eclipse.emf.ecore.resource.Resource,
java.util.List, boolean)
addChildrenUnits
protected void addChildrenUnits(LogicalUMLUnit unit)
- Description copied from class:
LogicalUMLResource
- Adds children units to the specified unit. Recursively builds the
hierarchy.
- Overrides:
addChildrenUnits in class LogicalUMLResource
- Parameters:
unit - Logical unit whose children are calculated- See Also:
LogicalUMLResource.addChildrenUnits(com.ibm.xtools.uml.msl.internal.resources.LogicalUMLUnit)
isManaged
public boolean isManaged()
- Specified by:
isManaged in interface ILogicalUMLResource- Overrides:
isManaged in class LogicalUMLResource
- Returns:
- Indicator if the logical resource is managed by the logical
resources framework.
- See Also:
LogicalUMLResource.isManaged()
© Copyright IBM Corp. 2009. All rights reserved.