Class Resource


  • public class Resource
    extends Object
    A Resource object that is associated with a change-notification.
    Since:
    0.0.1
    • Constructor Detail

      • Resource

        public Resource()
        Creates an instance of a Resource.
    • Method Detail

      • getId

        public String getId()
        Gets the ID of the resource
        Returns:
        the resource ID
      • getName

        public String getName()
        Gets the name of the resource.
        Returns:
        the resource name
      • getVersion

        public String getVersion()
        Gets the version of the resource.
        Returns:
        the resource version
      • setVersion

        public void setVersion​(String version)
        Sets the version, used to replace the version if needed, as done in the EthosChangeNotificationService.
        Parameters:
        version - The version of the resource to replace the current version with.
      • getDomain

        public String getDomain()
        Gets the domain to which the resource belongs.
        Returns:
        the domain of the resource