org.eclipse.gmt.umlx.xmi.util
Class XMIUtils

java.lang.Object
  extended by org.eclipse.gmt.umlx.xmi.util.XMIUtils

public class XMIUtils
extends java.lang.Object


Nested Class Summary
static class XMIUtils.ExcludedEClassIdFilter
           
static class XMIUtils.HierachicalENamedElementIdCreator
          Create xmi:id's using the same hierarchical/URI fragment algorithm as EMOFResourceImpl
static interface XMIUtils.IdCreator
           
static interface XMIUtils.IdFilter
           
static class XMIUtils.ShortPrefixedIdCreator
          Create short xmi:id's comprising a prefix and a count
 
Constructor Summary
XMIUtils()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMIUtils

public XMIUtils()
Method Detail

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)