public class AS2XMIid
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AS2XMIid.UnstableXMIidDiagnostics
Aggregated Diagnostic added to ASResource.errors if xmi:id assignment has to allocate
an unstable random uuid to avoid a duplicate stable id.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
moniker2id |
Modifier | Constructor and Description |
---|---|
|
AS2XMIid() |
protected |
AS2XMIid(java.util.Map<java.lang.String,java.lang.String> moniker2id) |
Modifier and Type | Method and Description |
---|---|
void |
assignIds(ASResource asResource,
java.util.Map<?,?> options)
Assign xmi:id values to referenceable elements in asResource re-using the xmi:id
values read when this AS2ID was constructed.
|
void |
assignIds(org.eclipse.emf.ecore.resource.ResourceSet asResourceSet,
java.util.Map<?,?> options)
Assign xmi:id values to referenceable elements in asResourceSet re-using the xmi:id
values read when this AS2ID was constructed.
|
java.lang.String |
getID(Element element,
boolean internalUUIDs) |
static AS2XMIid |
load(org.eclipse.emf.common.util.URI uri)
Create an AS2ID conversion primed with the xmi:id values obtained by loading uri.
|
@NonNull protected final java.util.Map<java.lang.String,java.lang.String> moniker2id
public AS2XMIid()
protected AS2XMIid(@NonNull java.util.Map<java.lang.String,java.lang.String> moniker2id)
@NonNull public static AS2XMIid load(@NonNull org.eclipse.emf.common.util.URI uri)
public void assignIds(@NonNull ASResource asResource, @Nullable java.util.Map<?,?> options)
public void assignIds(@NonNull org.eclipse.emf.ecore.resource.ResourceSet asResourceSet, @Nullable java.util.Map<?,?> options)
public java.lang.String getID(@NonNull Element element, boolean internalUUIDs)