Class DatasetType

java.lang.Object
gaiasky.util.datadesc.DatasetType

public class DatasetType extends Object
Represents the dataset type as a string, and contains a list of datasets for this type. This does not act as an enum, as there may be multiple instances of the same dataset type and different datasets.
  • Field Details

  • Constructor Details

    • DatasetType

      public DatasetType(String typeStr)
      Creates a type with an empty datasets list from a string.
      Parameters:
      typeStr - The type string.
  • Method Details

    • getTypeWeight

      public static int getTypeWeight(String type)
      Gets a weight for each type string. The weight is used for sorting the types.
    • getTypeIcon

      public static String getTypeIcon(String typeString)
      Parameters:
      typeString - The dataset type as a string.
      Returns:
      The icon identifier for this type.
    • addDataset

      public void addDataset(Dataset dd)
      Adds a dataset to this type.
      Parameters:
      dd - The dataset metadata object.
    • getIcon

      public String getIcon()
      Returns the icon identifier for this type.
      Returns:
      The icon identifier.