Class DatasetType
java.lang.Object
gaiasky.util.datadesc.DatasetType
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDatasetType(String typeStr) Creates a type with an empty datasets list from a string. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataset(Dataset dd) Adds a dataset to this type.getIcon()Returns the icon identifier for this type.static StringgetTypeIcon(String typeString) static intgetTypeWeight(String type) Gets a weight for each type string.
-
Field Details
-
typeStr
-
datasets
-
-
Constructor Details
-
DatasetType
Creates a type with an empty datasets list from a string.- Parameters:
typeStr- The type string.
-
-
Method Details
-
getTypeWeight
Gets a weight for each type string. The weight is used for sorting the types. -
getTypeIcon
-
addDataset
Adds a dataset to this type.- Parameters:
dd- The dataset metadata object.
-
getIcon
-