org.eclipse.ocl.examples.common.utils
Class XMIUtils
java.lang.Object
org.eclipse.ocl.examples.common.utils.XMIUtils
public class XMIUtils
- extends java.lang.Object
Method Summary |
static void |
assignIds(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.String xmiIdPrefix)
|
static void |
assignIds(org.eclipse.emf.ecore.resource.Resource resource,
XMIUtils.IdCreator idCreator,
XMIUtils.IdFilter idFilter)
Assign an xmi:id to all objects in resource. |
static void |
assignLinearIds(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.String xmiIdPrefix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uuidCreator
public static final XMIUtils.UUIDCreator uuidCreator
XMIUtils
public XMIUtils()
assignIds
public static void assignIds(org.eclipse.emf.ecore.resource.Resource resource,
XMIUtils.IdCreator idCreator,
XMIUtils.IdFilter idFilter)
- Assign an xmi:id to all objects in resource. A non-null idFilter may choose whether an xmi:id
is assigned. The idCreator is responsible for providing a candidate xmi:id, which, if not unique
will be suffixed until it is.
- Parameters:
resource
- idCreator
- idFilter
-
assignIds
public static void assignIds(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.String xmiIdPrefix)
assignLinearIds
public static void assignLinearIds(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.String xmiIdPrefix)