org.eclipse.ocl.examples.common.utils
Class XMIUtils.ShortPrefixedIdCreator

java.lang.Object
  extended by org.eclipse.ocl.examples.common.utils.XMIUtils.ShortPrefixedIdCreator
All Implemented Interfaces:
XMIUtils.IdCreator
Enclosing class:
XMIUtils

public static class XMIUtils.ShortPrefixedIdCreator
extends java.lang.Object
implements XMIUtils.IdCreator

Create short xmi:id's comprising a prefix and a small random count


Field Summary
protected  java.lang.String prefix
           
 
Constructor Summary
XMIUtils.ShortPrefixedIdCreator(java.lang.String prefix)
           
 
Method Summary
 java.lang.String createId(org.eclipse.emf.ecore.EObject eObject, java.util.Set<java.lang.String> knownIds)
          Create the id for eObject avoiding any ids in knownIds, which may be null for no exclusions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

protected final java.lang.String prefix
Constructor Detail

XMIUtils.ShortPrefixedIdCreator

public XMIUtils.ShortPrefixedIdCreator(java.lang.String prefix)
Method Detail

createId

public java.lang.String createId(org.eclipse.emf.ecore.EObject eObject,
                                 java.util.Set<java.lang.String> knownIds)
Description copied from interface: XMIUtils.IdCreator
Create the id for eObject avoiding any ids in knownIds, which may be null for no exclusions.

Specified by:
createId in interface XMIUtils.IdCreator
Returns: