Class TablePropertyDefinitionUtils


  • public final class TablePropertyDefinitionUtils
    extends Object
    Helper methods, for working with properties.
    See also PropertiesChecker for more methods.
    Author:
    DLiauchuk
    • Method Detail

      • getDimensionalTablePropertiesNames

        public static String[] getDimensionalTablePropertiesNames()
        Gets the array of properties names that are dimensional.
        Returns:
        names of properties that are dimensional.
      • getDimensionalTableProperties

        public static List<TablePropertyDefinition> getDimensionalTableProperties()
        Gets the array of properties names that are dimensional.
        Returns:
        names of properties that are dimensional.
      • getGlobalPropertiesToBeSetByDefault

        public static Map<String,​Object> getGlobalPropertiesToBeSetByDefault()
      • getPropertyName

        public static String getPropertyName​(String displayName)
        Gets the name of the property by the given display name
        Parameters:
        displayName -
        Returns:
        name
      • getDefaultValueForProperty

        public static String getDefaultValueForProperty​(String propertyName)
      • getPropertyDisplayName

        public static String getPropertyDisplayName​(String name)
        Gets the display name of the property by the given name
        Parameters:
        name -
        Returns:
        diplayName
      • getPropertyByName

        public static TablePropertyDefinition getPropertyByName​(String name)
        Gets the property by its given name
        Parameters:
        name -
        Returns:
        property definition
      • getTypeByPropertyName

        public static Class<?> getTypeByPropertyName​(String propertyName)
      • isPropertyExist

        public static boolean isPropertyExist​(String propertyName)
      • getPropertiesToBeSetByDefault

        public static List<TablePropertyDefinition> getPropertiesToBeSetByDefault()
        Gets list of properties that must me set for every table by default.
        Returns:
        list of properties.
      • getPropertiesMapToBeSetByDefault

        public static Map<String,​Object> getPropertiesMapToBeSetByDefault()
        Gets map of properties that must me set for every table by default.
        Returns:
        list of properties.
      • getSystemProperties

        public static List<TablePropertyDefinition> getSystemProperties()
        Gets list of properties that are marked as system.
        Returns:
        list of properties.
      • getSuitableTableTypes

        public static XlsNodeTypes[] getSuitableTableTypes​(String propertyName)
        Gets the table types in which this property can be defined.
        Parameters:
        propertyName - property name.
        Returns:
        the table type in which this property can be defined. NULL if property can be defined for each type of tables.
      • getPropertyTypeByPropertyName

        public static Class<?> getPropertyTypeByPropertyName​(String name)
      • buildGlobalTableProperties

        public static ITableProperties buildGlobalTableProperties()