Class XmiExporterDescription

java.lang.Object
com.nomagic.persistence.XmiExporterDescription
All Implemented Interfaces:
Serializable

@OpenApiAll public class XmiExporterDescription extends Object implements Serializable
Project version and required resources/plugins information.
See Also:
  • Constructor Details

    • XmiExporterDescription

      @Deprecated public XmiExporterDescription(String name, String version)
      Deprecated.
      use constructor with FileFormat arguments
      Constructor
      Parameters:
      name - exporter name
      version - exported version
    • XmiExporterDescription

      @Deprecated public XmiExporterDescription(String name, String version, @CheckForNull String umlURI)
      Deprecated.
      use constructor with FileFormat arguments
      Constructor
      Parameters:
      name - exported name
      version - exported version
      umlURI - uml metamodel uri
    • XmiExporterDescription

      public XmiExporterDescription(String name, FormatVersion formatVersion)
      Constructor
      Parameters:
      name - exported name
      formatVersion - fileFormat version
    • XmiExporterDescription

      public XmiExporterDescription(String name, FormatVersion formatVersion, @CheckForNull String umlURI)
      Constructor
      Parameters:
      name - exported name
      formatVersion - fileFormat version
      umlURI - uml metamodel uri
  • Method Details

    • getName

      public String getName()
      Returns:
      exported name
    • getVersion

      public String getVersion()
      Returns:
      exporter application version. For full version check use #getFileFormat
    • getRequiredPluginMap

      public Map<String,String> 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

      public void setRequiredPluginMap(Map<String,String> requiredPlugins)
      Set required plugins information
      Parameters:
      requiredPlugins - required plugins
    • addRequiredPlugin

      public void addRequiredPlugin(String name, String version)
      Adds required plugin into map.
      Parameters:
      name - name of plugin
      version - required version of plugin.
    • getRequiredResources

      public List<com.nomagic.persistence.RequiredResourceDescriptor> 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

      public void addRequiredResource(String suggestedId, String name, String value)
      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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getUMLNamespaceURI

      @CheckForNull public String getUMLNamespaceURI()
      Returns:
      uml metamodel uri
    • setUMLNamespaceURI

      public void setUMLNamespaceURI(String umlNamespaceURI)
    • getFormatVersion

      public FormatVersion getFormatVersion()
      Returns:
      file format version.