|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topcased.modeler.utils.ResourceUtils
public final class ResourceUtils
Provides utilies to manage resources
creation : 8 juin 2005
Method Summary | |
---|---|
static void |
addUUID(EObject modelObject)
Add UUID on elements : elements can only be modified if the class inherits from EModelElement |
static boolean |
isModelResource(Resource resource)
Return true if the given resource is the model resource |
static boolean |
isReadOnly(Resource resource)
Return true if the given resource is read only |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isReadOnly(Resource resource)
resource
- the resource to check
true
if the resource cannot be writtenpublic static boolean isModelResource(Resource resource)
resource
-
true
if it is the main model resourcepublic static void addUUID(EObject modelObject)
modelObject
- the model to modify
|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.