Class TMFeatureTypeHelper


  • public class TMFeatureTypeHelper
    extends Object
    • Constructor Detail

      • TMFeatureTypeHelper

        public TMFeatureTypeHelper()
    • Method Detail

      • getConfiguredAttributes

        public static Map<String,​org.apache.commons.lang3.tuple.Pair<TMAttributeDescriptor,​AttributeSettings>> getConfiguredAttributes​(@NotNull
                                                                                                                                                   @NotNull TMFeatureType featureType,
                                                                                                                                                   @NotNull
                                                                                                                                                   @NotNull AppLayerSettings appLayerSettings)
        Return a map of attribute names (in order, using a LinkedHashMap implementation) to an attribute descriptor and configured settings pair, taking into account the configured attribute order and hidden attributes.
        Parameters:
        featureType - The feature type
        appLayerSettings - The app layer settings
        Returns:
        A sorted map as described
      • getNonHiddenAttributes

        public static Set<TMAttributeDescriptor> getNonHiddenAttributes​(@NotNull
                                                                        @NotNull TMFeatureType featureType,
                                                                        @NotNull
                                                                        @NotNull AppLayerSettings appLayerSettings)
        Get the non-hidden attribute descriptors for a feature type.
        Parameters:
        featureType - The feature type
        appLayerSettings - The app layer settings
        Returns:
        Unordered set of attribute descriptors
      • getNonHiddenAttributeNames

        public static Set<String> getNonHiddenAttributeNames​(@NotNull
                                                             @NotNull TMFeatureType featureType,
                                                             @NotNull
                                                             @NotNull AppLayerSettings appLayerSettings)
        Get the non-hidden attribute names for a feature type.
        Parameters:
        featureType - The feature type
        appLayerSettings - The app layer settings
        Returns:
        Unordered set of attribute names