Class TMFeatureTypeHelper

java.lang.Object
org.tailormap.api.persistence.helper.TMFeatureTypeHelper

public class TMFeatureTypeHelper extends Object
  • Constructor Details

    • TMFeatureTypeHelper

      public TMFeatureTypeHelper()
  • Method Details

    • isEditable

      public static boolean isEditable(Application application, AppTreeLayerNode appTreeLayerNode, TMFeatureType featureType)
    • getHiddenAttributes

      public static Set<String> getHiddenAttributes(@NotNull @NotNull TMFeatureType featureType, @NotNull @NotNull AppLayerSettings appLayerSettings)
    • getReadOnlyAttributes

      public static Set<String> getReadOnlyAttributes(@NotNull @NotNull TMFeatureType featureType, @NotNull @NotNull AppLayerSettings appLayerSettings)
    • 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