|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.carma.model.util.NavigationUtils
public class NavigationUtils
Utility methods for navigating the CARMA model hierarchy.
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
| Constructor Summary | |
|---|---|
NavigationUtils()
|
|
| Method Summary | |
|---|---|
static CARMACommonObject |
getCommonObject(java.lang.Object resource)
Helper method to wrap the given object to a CARMA common object. |
static java.lang.String |
getDisplayName(java.lang.Object resource)
Determines the (default) displayable name for the given CARMA model object. |
static java.lang.String |
getRepositoryManagerId(java.lang.Object resource)
Locates the Repository Manager of the associated resource if the resource can be resolved to a CARMA Resource or Repository Manager. |
static boolean |
isContainer(CARMAResource resource)
Checks if the given resource is a container type resource. |
static boolean |
isContentsReady(java.lang.Object resource)
Checks if the navigable children of the given resource are initialized (i.e., will not throw a NotSynchronizedException if accessed). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COPYRIGHT
| Constructor Detail |
|---|
public NavigationUtils()
| Method Detail |
|---|
public static CARMACommonObject getCommonObject(java.lang.Object resource)
CARMA common object.
If no common object is associated with the resource, then null will be returned
resource - the CARMA model object to wrap with a CARMACommonObject interface
public static boolean isContainer(CARMAResource resource)
container type resource.
resource - the resource to check
public static boolean isContentsReady(java.lang.Object resource)
NotSynchronizedException if accessed). If the given resource is not a CARMA model object
then false will be returned.
resource - the resource to check for contents availability
true if the resource has contents initialized, false otherwisepublic static java.lang.String getRepositoryManagerId(java.lang.Object resource)
resource - the resource to find the associated manager id
public static java.lang.String getDisplayName(java.lang.Object resource)
NULL value shall be returned.
resource - the CARMA model object to gather a displayable String for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||