public final class ViewNsMigrationUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkMigration(File file)
Checks whether the view name space uri of the given file needs to be migrated.
|
static boolean |
migrateViewEcoreNsUri(File file)
If the given file references the view ecore, migrate the view ecore
namespace URI of the template model to the namespace URI of the registered version of the view ecore.
|
public static boolean migrateViewEcoreNsUri(File file) throws IOException
Note: If no migration is necessary, nothing is written to the output writer.
file
- The File
containing the template modelIOException
- if something goes wrong reading or writing the template model filepublic static boolean checkMigration(File file) throws IOException
file
- The file to checktrue
if no migration is necessary and false
if the name space uri needs
to be migrated.IOException
- if the file cannot be readCopyright © 2018. All rights reserved.