Class EsiUtils.OfflineProjectDescriptor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.nomagic.magicdraw.esi.persistence.local.ProjectMetadata metadata  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OfflineProjectDescriptor​(com.nomagic.magicdraw.esi.persistence.local.ProjectMetadata metadata)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.UUID getClusterID()
      Returns cluster ID of the project.
      java.lang.String getRepresentationString()
      Constructs human representation of project.
      java.net.URI getURI()
      Returns project location URI.
      java.lang.String getUser()
      Returns user name.
      int hashCode()  
      boolean isRemote()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • metadata

        private final com.nomagic.magicdraw.esi.persistence.local.ProjectMetadata metadata
    • Constructor Detail

      • OfflineProjectDescriptor

        private OfflineProjectDescriptor​(com.nomagic.magicdraw.esi.persistence.local.ProjectMetadata metadata)
    • Method Detail

      • getClusterID

        public java.util.UUID getClusterID()
        Returns cluster ID of the project.
        Returns:
        cluster ID.
      • getUser

        public java.lang.String getUser()
        Returns user name.
        Returns:
        user name.
      • getURI

        public java.net.URI getURI()
        Description copied from interface: ProjectDescriptor
        Returns project location URI. Used only for persistence, not for human representation. This location can be used for new descriptors creating in ProjectDescriptorsFactory.
        Specified by:
        getURI in interface ProjectDescriptor
        Returns:
        project URI.
      • getRepresentationString

        public java.lang.String getRepresentationString()
        Description copied from interface: ProjectDescriptor
        Constructs human representation of project.
        Specified by:
        getRepresentationString in interface ProjectDescriptor
        Returns:
        project's representation as String.
      • isRemote

        public boolean isRemote()
        Specified by:
        isRemote in interface ProjectDescriptor
        Returns:
        true if descriptor points to remote project location.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object