Package org.eclipse.emf.edapt.migration
Class ReleaseUtils
- java.lang.Object
-
- org.eclipse.emf.edapt.migration.ReleaseUtils
-
public final class ReleaseUtils extends Object
Helper methods for extraction of namespace URI and version from a model file.- Author:
- herrmama
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<String>
getAllNamespaceURIsFromPrefixes(org.eclipse.emf.common.util.URI uri)
Extract all namespace URIs from a model.static String
getNamespaceURI(org.eclipse.emf.common.util.URI uri)
Extract the namespace URI from a model.static String
getNamespaceURI_Registry(org.eclipse.emf.common.util.URI modelURI)
Extract the namespace URI from a model file using EMF Resource loading.static String
getNamespaceURI_SAX(File file)
Extract the namespace URI from a model file using SAX.static String
getNamespaceURI_SAX(InputStream inputStream)
Extract the namespace URI from an inputstream using SAX.
-
-
-
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.
-
-