Class FieldConfigHelper


  • public final class FieldConfigHelper
    extends java.lang.Object
    Helper methods for the FieldConfig class.
    Author:
    Kim Rutherford
    • Method Detail

      • getClassFieldConfigs

        public static java.util.List<FieldConfig> getClassFieldConfigs​(WebConfig webConfig,
                                                                       ClassDescriptor cd)
        Find the FieldConfig objects for the the given ClassDescriptor (or generate them).
        Parameters:
        webConfig - the WebConfig object for this webapp
        cd - a ClassDescriptor
        Returns:
        the FieldConfig objects for the the given ClassDescriptor
      • getFieldConfig

        public static FieldConfig getFieldConfig​(WebConfig webConfig,
                                                 FieldDescriptor fd)
        Get a field config object for a particular descriptor.
        Parameters:
        webConfig - The configuration.
        fd - The field metadata.
        Returns:
        The configuration for this field.
      • getFieldConfig

        public static FieldConfig getFieldConfig​(WebConfig webConfig,
                                                 ClassDescriptor cld,
                                                 FieldDescriptor fd)
        Get a field config object for a particular descriptor.
        Parameters:
        webConfig - The configuration.
        fd - The field metadata.
        cld - The class this field belongs to.
        Returns:
        The configuration for this field.