UML Modeling Layer

com.ibm.xtools.uml.msl.internal.resources
Interface ILogicalUMLResource

All Superinterfaces:
ILogicalResource
All Known Implementing Classes:
LogicalUMLResource, UnknownLogicalUMLResource, UnloadedLogicalUMLResource

public interface ILogicalUMLResource
extends ILogicalResource

Logical UML resource, comprised of the root resource and a number of fragments. The logical resource might be composed of only one resource, in which case it has only the root resource and no fragments.


Method Summary
 void addFragments(Resource resource, List<Resource> resourceList, boolean includeClosed)
          Adds fragments of the specified resource to the resource list.
 ILogicalUMLUnit getInternalHierarchicalStructure()
          Builds and returns UML hierarchical structure of the logical resource.
 boolean isManaged()
           
 
Methods inherited from interface com.ibm.xtools.uml.msl.resources.ILogicalResource
contains, getAllFragments, getAllLoadedResources, getAllResources, getHierarchicalStructure, getLoadedFragments, getModifiedResources, getRootResource, isModified
 

Method Detail

addFragments

void addFragments(Resource resource,
                  List<Resource> resourceList,
                  boolean includeClosed)
Adds fragments of the specified resource to the resource list. The includeClosed flag indicates if the closed resoruces should be included in the list.

Parameters:
resource - Resource whose fragments are added to the list
resourceList - The resource list
includeClosed - The indicator if the closed resoruces should be included in the list

getInternalHierarchicalStructure

ILogicalUMLUnit getInternalHierarchicalStructure()
Builds and returns UML hierarchical structure of the logical resource. The structure is a snapshot at the time of the call and is not dynamically updated. The root unit of a logical UML resource must be a UML logical unit. This method really returns the same unit as getHierarchicalStructure() - it only enforces the type.

Returns:
The logical unit of the top resource in the hierarchical structure as UML unit

isManaged

boolean isManaged()
Returns:
Indicator if the logical resource is managed by the logical resources framework.

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.