|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.xtools.uml.msl.internal.resources.LogicalUMLUnit
public class LogicalUMLUnit
Unit of logical UML resource, backed by an EMF resource.
| Constructor Summary | |
|---|---|
LogicalUMLUnit(Resource resource,
ILogicalUMLUnit parent)
Constructor |
|
| Method Summary | |
|---|---|
void |
addChild(ILogicalUMLUnit child)
Adds child logical unit |
boolean |
canContain(Resource testResource)
Tests if the specified resource can be logically contained by the logical unit. |
boolean |
equals(Object obj)
|
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. |
ILogicalUMLUnit |
getParentAsUMLUnit()
Returns the logical parent unit of this logical unit as UML unit. |
Resource |
getResource()
Returns the resource backing the logical unit. |
ResourceHealth |
getResourceHealth()
The resource state values give us some indication of the health of the fragment. |
int |
hashCode()
|
boolean |
isAccessible()
|
void |
removeChild(ILogicalUMLUnit child)
Removes child logical unit |
void |
setContainerUri(URI containerUri)
|
void |
setResourceState(ResourceHealth state)
Set the state for this unit. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogicalUMLUnit(Resource resource,
ILogicalUMLUnit parent)
resource - The resource backing the logical unitparent - The logical parent unit| Method Detail |
|---|
public Resource getResource()
getResource in interface ILogicalUnitpublic ILogicalUnit getParent()
getParent in interface ILogicalUnitpublic ILogicalUMLUnit getParentAsUMLUnit()
getParentAsUMLUnit in interface ILogicalUMLUnitpublic List<ILogicalUnit> getChildren()
getChildren in interface ILogicalUnitpublic void addChild(ILogicalUMLUnit child)
child - Child logical unitpublic void removeChild(ILogicalUMLUnit child)
child - Child logical unitpublic boolean canContain(Resource testResource)
canContain in interface ILogicalUMLUnitresource - The resource to test
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public ResourceHealth getResourceHealth()
ILogicalUMLUnit
getResourceHealth in interface ILogicalUMLUnitResourceHealthpublic void setResourceState(ResourceHealth state)
state - public boolean isAccessible()
isAccessible in interface ILogicalUnitpublic URI getContainerUri()
ILogicalUnit
getContainerUri in interface ILogicalUnitpublic void setContainerUri(URI containerUri)
containerUri - the containerUri to set
|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||