Class ServiceDesignation

java.lang.Object
org.wildfly.discovery.ServiceDesignation
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ServiceType, ServiceURL

public abstract class ServiceDesignation extends Object implements Serializable
A service designation.
Author:
David M. Lloyd
See Also:
  • Method Details

    • getAbstractType

      public abstract String getAbstractType()
      Get the abstract type, if any.
      Returns:
      the abstract type, or null if no abstract type is set (subclasses may restrict this)
    • getAbstractTypeAuthority

      public abstract String getAbstractTypeAuthority()
      Get the abstract type authority of this service type. Abstract types with no authority will return null for this value.
      Returns:
      the abstract type authority of this service type (may be null)
    • getUriScheme

      public abstract String getUriScheme()
      Get the concrete type name of this service type, if any.
      Returns:
      the concrete service type, or null if no abstract type is set (subclasses may restrict this)
    • getUriSchemeAuthority

      public abstract String getUriSchemeAuthority()
      Get the concrete type authority name of this service type, if any.
      Returns:
      the concrete type authority name (may be null)
    • implies

      public abstract boolean implies(ServiceDesignation other)
      Determine whether the given service designation is implied by this service designation.
      Parameters:
      other - the other service designation
      Returns:
      true of the other service designation is implied by this one, false otherwise
    • equals

      public abstract boolean equals(Object other)
      Determine if this service designation is equal to another.
      Overrides:
      equals in class Object
      Parameters:
      other - the other service designation
      Returns:
      true if the service types are equal, false otherwise
    • equals

      public abstract boolean equals(ServiceDesignation other)
      Determine if this service designation is equal to another.
      Parameters:
      other - the other service designation
      Returns:
      true if the service types are equal, false otherwise
    • hashCode

      public abstract int hashCode()
      Get the hash code of this designation.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code of this designation
    • toString

      public abstract String toString()
      Get the simple string representation of this designation.
      Overrides:
      toString in class Object
      Returns:
      the simple string representation of this designation (not null)