Class ServiceInfo

java.lang.Object
com.highdeal.admin.hci.ServiceInfo
All Implemented Interfaces:
Comparable<ServiceInfo>

public class ServiceInfo extends Object implements Comparable<ServiceInfo>
This Java class represents the service information.
  • Field Details

  • Constructor Details

    • ServiceInfo

      public ServiceInfo()
      Builds an empty ServiceInfo instance.
    • ServiceInfo

      public ServiceInfo(ServiceInfo.ServiceInfoType serviceInfoType)
  • Method Details

    • getServiceInfoType

      public ServiceInfo.ServiceInfoType getServiceInfoType()
    • setServiceInfoType

      public void setServiceInfoType(ServiceInfo.ServiceInfoType serviceInfoType)
    • getServiceInfoSecurity

      public ServiceInfo.ServiceInfoSecurity getServiceInfoSecurity()
    • setServiceInfoSecurity

      public void setServiceInfoSecurity(ServiceInfo.ServiceInfoSecurity serviceInfoSecurity)
    • getAddress

      public ServiceInfo.Address getAddress()
    • isEnabled

      public boolean isEnabled()
      Indicates if the service is enabled, i.e. it is defined.
      Returns:
      true if service is enabled, false otherwise
    • isAvailable

      public boolean isAvailable()
      Indicates if the service is available, i.e. it is possible to enable it.
      Returns:
      true if service is available, false otherwise
    • getURL

      public URL getURL()
      Returns the URL of the service.
      Returns:
      The URL of the service if it is available, null otherwise
    • compareTo

      public int compareTo(ServiceInfo o)
      Specified by:
      compareTo in interface Comparable<ServiceInfo>