Package com.nomagic.persistence
Class XmiExporterDescription
java.lang.Object
com.nomagic.persistence.XmiExporterDescription
- All Implemented Interfaces:
Serializable
Project version and required resources/plugins information.
- See Also:
-
Constructor Summary
ConstructorDescriptionXmiExporterDescription
(String name, FormatVersion formatVersion) ConstructorXmiExporterDescription
(String name, FormatVersion formatVersion, String umlURI) ConstructorXmiExporterDescription
(String name, String version) Deprecated.use constructor with FileFormat argumentsXmiExporterDescription
(String name, String version, String umlURI) Deprecated.use constructor with FileFormat arguments -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequiredPlugin
(String name, String version) Adds required plugin into map.void
addRequiredResource
(String suggestedId, String name, String value) Adds resource as required for project.boolean
getName()
Returns list of map which plugins and version, which are required for project loading.List<com.nomagic.persistence.RequiredResourceDescriptor>
Returns list of required resources IDsint
hashCode()
void
setRequiredPluginMap
(Map<String, String> requiredPlugins) Set required plugins informationvoid
setRequiredResources
(List<com.nomagic.persistence.RequiredResourceDescriptor> requiredResources) Set required resourcesvoid
setUMLNamespaceURI
(String umlNamespaceURI) toString()
-
Constructor Details
-
XmiExporterDescription
Deprecated.use constructor with FileFormat argumentsConstructor- Parameters:
name
- exporter nameversion
- exported version
-
XmiExporterDescription
Deprecated.use constructor with FileFormat argumentsConstructor- Parameters:
name
- exported nameversion
- exported versionumlURI
- uml metamodel uri
-
XmiExporterDescription
Constructor- Parameters:
name
- exported nameformatVersion
- fileFormat version
-
XmiExporterDescription
public XmiExporterDescription(String name, FormatVersion formatVersion, @CheckForNull String umlURI) Constructor- Parameters:
name
- exported nameformatVersion
- fileFormat versionumlURI
- uml metamodel uri
-
-
Method Details
-
getName
- Returns:
- exported name
-
getVersion
- Returns:
- exporter application version. For full version check use #getFileFormat
-
getRequiredPluginMap
Returns list of map which plugins and version, which are required for project loading.- Returns:
- map of pluginName->Version, that is required for project loading
-
setRequiredPluginMap
Set required plugins information- Parameters:
requiredPlugins
- required plugins
-
addRequiredPlugin
Adds required plugin into map.- Parameters:
name
- name of pluginversion
- required version of plugin.
-
getRequiredResources
Returns list of required resources IDs- Returns:
- list of required resources IDs.
-
setRequiredResources
public void setRequiredResources(List<com.nomagic.persistence.RequiredResourceDescriptor> requiredResources) Set required resources- Parameters:
requiredResources
- required resources
-
addRequiredResource
Adds resource as required for project. resource ID, name and value are passed to create resource ID.- Parameters:
suggestedId
- id of resource.name
- name of resource.value
- value of resource.
-
toString
-
equals
-
hashCode
public int hashCode() -
getUMLNamespaceURI
- Returns:
- uml metamodel uri
-
setUMLNamespaceURI
-
getFormatVersion
- Returns:
- file format version.
-