Package org.intermine.web.logic.config
Class FieldConfigHelper
- java.lang.Object
-
- org.intermine.web.logic.config.FieldConfigHelper
-
public final class FieldConfigHelper extends java.lang.Object
Helper methods for the FieldConfig class.- Author:
- Kim Rutherford
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<FieldConfig>
getClassFieldConfigs(WebConfig webConfig, ClassDescriptor cd)
Find the FieldConfig objects for the the given ClassDescriptor (or generate them).static FieldConfig
getFieldConfig(WebConfig webConfig, ClassDescriptor cld, FieldDescriptor fd)
Get a field config object for a particular descriptor.static FieldConfig
getFieldConfig(WebConfig webConfig, FieldDescriptor fd)
Get a field config object for a particular descriptor.
-
-
-
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 webappcd
- 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.
-
-