UML Modeling Layer

com.ibm.xtools.uml.msl.resources
Interface ILogicalUnit

All Known Subinterfaces:
ILogicalUMLUnit
All Known Implementing Classes:
LogicalUMLUnit

public interface ILogicalUnit

Unit of logical resource, backed by an EMF resource.


Method Summary
 List<ILogicalUnit> getChildren()
          Returns the logical children units of this logical unit.
 URI getContainerUri()
          Returns the URI of the container of this logical unit.
 ILogicalUnit getParent()
          Returns the logical parent unit of this logical unit.
 Resource getResource()
          Returns the resource backing the logical unit.
 boolean isAccessible()
           
 

Method Detail

getResource

Resource getResource()
Returns the resource backing the logical unit.

Returns:
The resource backing the logical unit

getParent

ILogicalUnit getParent()
Returns the logical parent unit of this logical unit. If this unit is the root unit of the logical resource then this method returns null.

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

getContainerUri

URI getContainerUri()
Returns the URI of the container of this logical unit. If this unit is the root unit of the logical resource then this method returns null.

Returns:
The container URI of this logical unit. May be null.

getChildren

List<ILogicalUnit> getChildren()
Returns the logical children units of this logical unit. Empty list if it does not have children.

Returns:
The logical children units of this logical unit.

isAccessible

boolean isAccessible()
Returns:
Indicator if the resource is accessible. One possible reason for inaccessibility would be that there is no corresponding file.

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.