package gov.nasa.gsfc.spdf.cdfj;
import java.util.*;
/**
 * Global Attribute specification.
 */
public interface GlobalAttribute extends Attribute {
    /**
     * returns count of entries for this global attribute. 
     */
    public int getEntryCount();

    /**
     * returns nth entry for this global attribute. 
     * if entry type is string, a String is returned.
     * if entry type is long, a long[] is returned.
     * In other cases  a double[] is returned
     */
    public Object getEntry(int n);

    /**
     * returns whether nth entry is of type long.
     * A Throwable is thrown for invalid entry number
     */
    public boolean isLongType(int n) throws Throwable;

    /**
     * returns whether nth entry is of type string.
     * A Throwable is thrown for invalid entry number
     */
    public boolean isStringType(int n) throws Throwable;
    public int getNum();
}