Package nom.tam.fits.header
Class GenericKey
- java.lang.Object
-
- nom.tam.fits.header.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 stringstatic 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.
-
-
-
Field Detail
-
NUMBER_BASE
private static final int NUMBER_BASE
- See Also:
- Constant Field Values
-
STANDARD_KEYS
private static final java.util.Map<java.lang.String,IFitsHeader> STANDARD_KEYS
cache of all standard keys, for reusing the standards.
-
-
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
-
-