public class XcosBlockNameMigration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BACKUP_EXTENSION
Extension of backup file
|
static java.lang.String |
XCOS_NAME_PREFIX
Prefix of X2C Xcos block names
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBackupFileName()
Returns the backup file name.
|
java.lang.String[] |
getChanges()
Returns the migrated blocks.
|
java.lang.String[] |
getWarnings()
Returns the warnings of the migration (blocks which couldn't be migrated completely).
|
static XcosBlockNameMigration |
migrate(java.lang.String fileName)
Migrates the X2C blocks of an Xcos diagram file.
|
public static final java.lang.String XCOS_NAME_PREFIX
public static final java.lang.String BACKUP_EXTENSION
public static XcosBlockNameMigration migrate(java.lang.String fileName) throws java.lang.Exception
fileName - Xcos diagram file name (*.zcos or *.xcos)java.lang.Exception - if the file is not an Xcos diagram, is write protected, the backup file already exists or the diagram
couldn't be loaded or savedpublic java.lang.String[] getChanges()
public java.lang.String[] getWarnings()
public java.lang.String getBackupFileName()
Copyright 2019 LCM. All rights reserved.