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
the error string value- See Also:
-
nullStr
the null sting value- See Also:
-
COL_TO_BASE_CLASS_MAP_INDEX
the COL_TO_BASE_CLASS_MAP_INDEX value- See Also:
-
CMPD_START_IDX_MAP_INDEX
the CMPD_START_IDX_MAP_INDEX value- See Also:
-
-
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
-