Class TMFeatureTypeHelper
- java.lang.Object
-
- nl.b3p.tailormap.api.persistence.helper.TMFeatureTypeHelper
-
public class TMFeatureTypeHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description TMFeatureTypeHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,org.apache.commons.lang3.tuple.Pair<TMAttributeDescriptor,AttributeSettings>>getConfiguredAttributes(@NotNull TMFeatureType featureType, @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.static Set<String>getHiddenAttributes(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings)static Set<String>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.static Set<String>getReadOnlyAttributes(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings)static booleanisEditable(Application application, AppTreeLayerNode appTreeLayerNode, TMFeatureType featureType)
-
-
-
Method Detail
-
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 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
-
-