Class ServiceType


  • public final class ServiceType
    extends Object
    Type-safe enumeration of THREDDS Service types.
    • Method Detail

      • getAllTypes

        public static Collection<ServiceType> getAllTypes()
        Get all ServiceType objects
        Returns:
        all ServiceType objects
      • findType

        public static ServiceType findType​(String name)
        Return the known ServiceType that matches the given name (ignoring case) or null if the name is unknown.
        Parameters:
        name - name of the desired ServiceType.
        Returns:
        ServiceType or null if no match.
      • getType

        public static ServiceType getType​(String name)
        Return a ServiceType that matches the given name by either matching a known type (ignoring case) or creating an unknown type.
        Parameters:
        name - name of the desired ServiceType
        Returns:
        the named ServiceType or null if given name is null.
      • toString

        public String toString()
        Return the ServiceType name.
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Override Object.hashCode() to be consistent with this equals.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object o)
        ServiceType with same name are equal.
        Overrides:
        equals in class Object