Object
hdf.view.TableView.DataFactoryUtils
A class containing utility functions for the various DataXXXFactory classes,
such as DataProviderFactory, DataDisplayConverterFactory and
DataValidatorFactory.
- Version:
- 1.0 2/21/2019
- Author:
- Jordan T. Henderson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildIndexMaps
(CompoundDataFormat dataFormat, List<Datatype> localSelectedTypes) build the index maps compound types.filterNonSelectedMembers
(CompoundDataFormat dataFormat, Datatype compoundType) Given a CompoundDataFormat, as well as a compound datatype, removes the non-selected datatypes from the List of datatypes inside the compound datatype and returns that as a new List.
-
Field Details
-
errStr
-
nullStr
-
COL_TO_BASE_CLASS_MAP_INDEX
-
CMPD_START_IDX_MAP_INDEX
-
-
Constructor Details
-
DataFactoryUtils
public DataFactoryUtils()
-
-
Method Details
-
filterNonSelectedMembers
public static List<Datatype> filterNonSelectedMembers(CompoundDataFormat dataFormat, Datatype compoundType) Given a CompoundDataFormat, as well as a compound datatype, removes the non-selected datatypes from the List of datatypes inside the compound datatype and returns that as a new List.- Parameters:
dataFormat
- the compound data objectcompoundType
- the datatype instance of the compound data object- Returns:
- the list of datatypes in the compound data object
-
buildIndexMaps
public static HashMap<Integer,Integer>[] buildIndexMaps(CompoundDataFormat dataFormat, List<Datatype> localSelectedTypes) throws Exception build the index maps compound types.- Parameters:
dataFormat
- the compound data objectlocalSelectedTypes
- the list of datatypes of the compound data object- Returns:
- the map of datatypes in the compound data object
- Throws:
Exception
- if a failure occurred
-