UML Modeling Layer

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

All Known Implementing Classes:
LogicalUMLResourceAdapter, LogicalUMLResourceProvider

public interface ILogicalUMLResourceAdapter

The common interface shared by the logical adapter and logical provider.

See Also:
LogicalUMLResourceAdapter, LogicalUMLResourceProvider

Method Summary
 ILogicalUMLResource findLogicalResource(Resource resource)
          Returns a logical UML resource for a resource even if no part of that logical resource is loaded.
 ILogicalUMLResource getLogicalResource(Resource resource)
          Returns the logical UML resource of the specified resource.
 ILogicalUMLResource getLogicalResource(Resource resource, boolean trackUnknowns)
          Returns the logical UML resource of the specified resource.
 

Method Detail

findLogicalResource

ILogicalUMLResource findLogicalResource(Resource resource)
Returns a logical UML resource for a resource even if no part of that logical resource is loaded. Unlike other logicalResource methods the result returned here may not be canonical. If a canonical logical resource can be found it will be returned otherwise an UnloadedLogicalUMLResource is returned.

Parameters:
resource - The resource whose logical resource is returned
Returns:
The canonical logical model for as resource if it exists or an UnloadedLogicalUMLResource otherwise.

getLogicalResource

ILogicalUMLResource getLogicalResource(Resource resource,
                                       boolean trackUnknowns)
Returns the logical UML resource of the specified resource.

Parameters:
resource - The resource whose logical resource is returned. If the resource is not loaded the fragment list is not built and the returned logical resource can be used only as the wrapper. Subsequent invocations for the same resource will return in that case different instance of the logical resource.
trackUnknown - Indicates whether the provider should keep track of unknown resources, if this is set to false any returned UnknownLogicalUMLResource may not be canonical.
Returns:
Logical UML resource

getLogicalResource

ILogicalUMLResource getLogicalResource(Resource resource)
Returns the logical UML resource of the specified resource.

Parameters:
resource - The resource whose logical resource is returned. If the resource is not loaded the fragment list is not built and the returned logical resource can be used only as the wrapper. Subsequent invocations for the same resource will return in that case different instance of the logical resource.
Returns:
Logical UML resource

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.