Class ReleaseUtils


  • public final class ReleaseUtils
    extends Object
    Helper methods for extraction of namespace URI and version from a model file.
    Author:
    herrmama
    • Method Detail

      • getNamespaceURI

        public static String getNamespaceURI​(org.eclipse.emf.common.util.URI uri)
        Extract the namespace URI from a model.
      • getAllNamespaceURIsFromPrefixes

        public static Set<String> getAllNamespaceURIsFromPrefixes​(org.eclipse.emf.common.util.URI uri)
        Extract all namespace URIs from a model.
        Since:
        1.2
      • getNamespaceURI_SAX

        public static String getNamespaceURI_SAX​(File file)
        Extract the namespace URI from a model file using SAX.
      • getNamespaceURI_SAX

        public static String getNamespaceURI_SAX​(InputStream inputStream)
        Extract the namespace URI from an inputstream using SAX.
        Since:
        1.1
      • getNamespaceURI_Registry

        public static String getNamespaceURI_Registry​(org.eclipse.emf.common.util.URI modelURI)
        Extract the namespace URI from a model file using EMF Resource loading.