Class MetadataType


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

      • getAllTypes

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

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

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

        public String toString()
        Return the MetadataType 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)
        MetaDataType with same name are equal.
        Overrides:
        equals in class Object