Class GenericKey


  • public final class GenericKey
    extends java.lang.Object
    generic key interface, create an IFitsHeader from a key.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int NUMBER_BASE  
      private static java.util.Map<java.lang.String,​IFitsHeader> STANDARD_KEYS
      cache of all standard keys, for reusing the standards.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private GenericKey()
      utility class do not instanciate it.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IFitsHeader create​(java.lang.String key)
      create a fits header key from a free string
      static IFitsHeader[] create​(java.lang.String[] keys)
      create a array of generic fits header keys from a array of string keys.
      static int getN​(java.lang.String card)  
      static IFitsHeader lookup​(java.lang.String key)
      lookup a string key in the standard key sets.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • STANDARD_KEYS

        private static final java.util.Map<java.lang.String,​IFitsHeader> STANDARD_KEYS
        cache of all standard keys, for reusing the standards.
    • Constructor Detail

      • GenericKey

        private GenericKey()
        utility class do not instanciate it.
    • Method Detail

      • create

        public static IFitsHeader create​(java.lang.String key)
        create a fits header key from a free string
        Parameters:
        key - the string to create the key for
        Returns:
        the IFitsHeader implementation for the key.
      • create

        public static IFitsHeader[] create​(java.lang.String[] keys)
        create a array of generic fits header keys from a array of string keys.
        Parameters:
        keys - the array of string keys
        Returns:
        the array of IFitsHeaderKeys.
      • getN

        public static int getN​(java.lang.String card)
      • lookup

        public static IFitsHeader lookup​(java.lang.String key)
        lookup a string key in the standard key sets.
        Parameters:
        key - the fits key to search.
        Returns:
        the found fits key or null