Class TMFeatureTypeHelper
java.lang.Object
org.tailormap.api.persistence.helper.TMFeatureTypeHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguredAttributes(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings) Return a map of attribute names (in order, using a LinkedHashMap implementation) to an attribute descriptor with configured settings, taking into account the configured attribute order and hidden attributes.getHiddenAttributes(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings) getNonHiddenAttributeNames(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings) Get the non-hidden attribute names for a feature type.static Set<TMAttributeDescriptor>getNonHiddenAttributes(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings) Get the non-hidden attribute descriptors for a feature type.getReadOnlyAttributes(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings) static booleanisEditable(Application application, AppTreeLayerNode appTreeLayerNode, TMFeatureType featureType)
-
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,TMFeatureTypeHelper.AttributeWithSettings> 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 with configured settings, taking into account the configured attribute order and hidden attributes.- Parameters:
featureType- The feature typeappLayerSettings- 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 typeappLayerSettings- 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 typeappLayerSettings- The app layer settings- Returns:
- Unordered set of attribute names
-