Modelers

org.topcased.modeler.utils
Class ResourceUtils

java.lang.Object
  extended by org.topcased.modeler.utils.ResourceUtils

public final class ResourceUtils
extends java.lang.Object

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

isReadOnly

public static boolean isReadOnly(Resource resource)
Return true if the given resource is read only

Parameters:
resource - the resource to check
Returns:
true if the resource cannot be written

isModelResource

public static boolean isModelResource(Resource resource)
Return true if the given resource is the model resource

Parameters:
resource -
Returns:
true if it is the main model resource

addUUID

public static void addUUID(EObject modelObject)
Add UUID on elements : elements can only be modified if the class inherits from EModelElement

Parameters:
modelObject - the model to modify

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.