Package jadex.bridge

Class GlobalResourceIdentifier

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String id
      The id.
      protected java.net.URI uri
      The URI.
      protected java.lang.String versioninfo
      The version info.
    • Constructor Summary

      Constructors 
      Constructor Description
      GlobalResourceIdentifier()
      Create a resource identifier.
      GlobalResourceIdentifier​(java.lang.String id, java.net.URI url, java.lang.String versioninfo)
      Create a resource identifier.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Test if equals.
      java.net.URI getRepositoryInfo()
      todo: make struct to also allow containing Get the url.
      java.lang.String getResourceId()
      Get the resource id.
      java.lang.String getVersionInfo()
      Get the version info.
      int hashCode()
      Get the hashcode.
      void setRepositoryInfo​(java.net.URI uri)
      Set the repository info.
      void setResourceId​(java.lang.String id)
      Set the id.
      void setVersionInfo​(java.lang.String versioninfo)
      Set the version info.
      java.lang.String toString()
      Get a string representation of this object.
      • Methods inherited from class java.lang.Object

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

      • id

        protected java.lang.String id
        The id.
      • uri

        protected java.net.URI uri
        The URI.
      • versioninfo

        protected java.lang.String versioninfo
        The version info.
    • Constructor Detail

      • GlobalResourceIdentifier

        public GlobalResourceIdentifier()
        Create a resource identifier.
      • GlobalResourceIdentifier

        public GlobalResourceIdentifier​(java.lang.String id,
                                        java.net.URI url,
                                        java.lang.String versioninfo)
        Create a resource identifier.
        Parameters:
        cid - The platform identifier.
        url - The local URL.
    • Method Detail

      • getResourceId

        public java.lang.String getResourceId()
        Get the resource id. E.g. in case of maven the global coordinates in the form groupid:artifactid:version
        Specified by:
        getResourceId in interface IGlobalResourceIdentifier
        Returns:
        The id.
      • getRepositoryInfo

        public java.net.URI getRepositoryInfo()
        todo: make struct to also allow containing Get the url.
        Specified by:
        getRepositoryInfo in interface IGlobalResourceIdentifier
        Returns:
        The resource url.
      • setResourceId

        public void setResourceId​(java.lang.String id)
        Set the id.
        Parameters:
        id - The id.
      • setRepositoryInfo

        public void setRepositoryInfo​(java.net.URI uri)
        Set the repository info.
        Parameters:
        info - The info.
      • getVersionInfo

        public java.lang.String getVersionInfo()
        Get the version info. Important in case of snapshot versions, here the concrete timestamp of the version is included.
        Specified by:
        getVersionInfo in interface IGlobalResourceIdentifier
        Returns:
        The version info.
      • setVersionInfo

        public void setVersionInfo​(java.lang.String versioninfo)
        Set the version info.
      • hashCode

        public int hashCode()
        Get the hashcode.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Test if equals.
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Get a string representation of this object.
        Overrides:
        toString in class java.lang.Object