UML Modeling Layer

com.ibm.xtools.uml.msl.internal.resources
Class UnknownLogicalUMLResource

java.lang.Object
  extended by com.ibm.xtools.uml.msl.internal.resources.LogicalUMLResource
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.xtools.uml.msl.internal.resources.LogicalUMLResource
LogicalUMLResource.ResourceSynchronizer
 
Field Summary
 
Fields inherited from class com.ibm.xtools.uml.msl.internal.resources.LogicalUMLResource
allFragments, loadedFragments, resourceSynchronizer, rootResource
 
Constructor Summary
UnknownLogicalUMLResource(Resource rootResource)
          Constructor
 
Method Summary
protected  void addChildrenUnits(LogicalUMLUnit unit)
          Adds children units to the specified unit.
 void addFragments(Resource resource, List resourceList, boolean includeClosed)
          Adds fragments of the specified resource to the resource list.
 boolean isManaged()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnknownLogicalUMLResource

public UnknownLogicalUMLResource(Resource rootResource)
Constructor

Parameters:
rootResource - The root resource
Method Detail

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 list
resourceList - The resource list
includeClosed - 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()

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.