UML Modeling Layer

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

All Superinterfaces:
ILogicalUnit
All Known Implementing Classes:
LogicalUMLUnit

public interface ILogicalUMLUnit
extends ILogicalUnit

Unit of logical UML resource, backed by an EMF resource.


Method Summary
 boolean canContain(Resource testResource)
          Tests if the specified resource can be logically contained by the logical unit.
 ILogicalUMLUnit getParentAsUMLUnit()
          Returns the logical parent unit of this logical unit as UML unit.
 ResourceHealth getResourceHealth()
          The resource state values give us some indication of the health of the fragment.
 
Methods inherited from interface com.ibm.xtools.uml.msl.resources.ILogicalUnit
getChildren, getContainerUri, getParent, getResource, isAccessible
 

Method Detail

getParentAsUMLUnit

ILogicalUMLUnit getParentAsUMLUnit()
Returns the logical parent unit of this logical unit as UML unit. If this unit is the root unit of the logical resource then this method returns null. Parent of a logical UML unit must be a UML logical unit. This method really returns the same unit as getParent - it only enforces the type.

Returns:
The logical parent unit of this logical unit as UML unit. May be null.

canContain

boolean canContain(Resource testResource)
Tests if the specified resource can be logically contained by the logical unit. For example, circular containment is not allowed.

Parameters:
resource - The resource to test
Returns:
Indicator if the specified resource can be logically contained

getResourceHealth

ResourceHealth getResourceHealth()
The resource state values give us some indication of the health of the fragment.

Returns:
An instance of the ResourceState enum.
See Also:
ResourceHealth

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.