Class CustomEObjectDescription

  • All Implemented Interfaces:
    org.eclipse.xtext.resource.IEObjectDescription

    public class CustomEObjectDescription
    extends org.eclipse.xtext.resource.EObjectDescription
    Custom EObjectDescription implementation which fixes the normalization of URI to be workable while the context is being detached from the resource (the current strategy of BSL to handle the externalization of a context def)
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomEObjectDescription​(org.eclipse.xtext.naming.QualifiedName qualifiedName, org.eclipse.emf.ecore.EObject element, Map<String,​String> userData)
      Constructs an instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.emf.common.util.URI normalize​(org.eclipse.emf.ecore.EObject element, org.eclipse.emf.common.util.URI uri)  
      • Methods inherited from class org.eclipse.xtext.resource.EObjectDescription

        create, create, create, create, getEClass, getEObjectOrProxy, getEObjectURI, getName, getQualifiedName, getUserData, getUserDataKeys
      • Methods inherited from class org.eclipse.xtext.resource.AbstractEObjectDescription

        toString
    • Constructor Detail

      • CustomEObjectDescription

        public CustomEObjectDescription​(org.eclipse.xtext.naming.QualifiedName qualifiedName,
                                        org.eclipse.emf.ecore.EObject element,
                                        Map<String,​String> userData)
        Constructs an instance
        Parameters:
        qualifiedName - The qualified name of an object. May not be null
        element - The corresponding element. May not be null
        userData - The custom user data. May not be null
    • Method Detail

      • normalize

        protected org.eclipse.emf.common.util.URI normalize​(org.eclipse.emf.ecore.EObject element,
                                                            org.eclipse.emf.common.util.URI uri)
        Overrides:
        normalize in class org.eclipse.xtext.resource.EObjectDescription