Class PropertiesUtil
- java.lang.Object
-
- net.officefloor.compile.impl.properties.PropertiesUtil
-
public class PropertiesUtil extends java.lang.ObjectUtility methods for working withPropertyinstances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyPrefixedProperties(SourceProperties source, java.lang.String propertyPrefix, PropertyConfigurable target)Copies allPropertyinstances with the name prefix from theSourcePropertiesto thePropertyConfigurable.static voidcopyPrefixedProperties(SourceProperties source, java.lang.String propertyPrefix, PropertyList target)Copies allPropertyinstances with the name prefix from theSourcePropertiesto thePropertyConfigurable.static voidcopyProperties(SourceProperties source, PropertyConfigurable target, java.lang.String... propertyNames)static voidcopyProperties(SourceProperties source, PropertyList target, java.lang.String... propertyNames)
-
-
-
Method Detail
-
copyProperties
public static void copyProperties(SourceProperties source, PropertyConfigurable target, java.lang.String... propertyNames)
- Parameters:
source-SourceProperties.target-PropertyConfigurable.propertyNames- Names of the properties to copy. If no names are provided, allPropertyinstances are copied.
-
copyProperties
public static void copyProperties(SourceProperties source, PropertyList target, java.lang.String... propertyNames)
- Parameters:
source-SourceProperties.target-PropertyList.propertyNames- Names of the properties to copy. If no names are provided, allPropertyinstances are copied.
-
copyPrefixedProperties
public static void copyPrefixedProperties(SourceProperties source, java.lang.String propertyPrefix, PropertyConfigurable target)
Copies all
Propertyinstances with the name prefix from theSourcePropertiesto thePropertyConfigurable.This is useful for copying a list of properties that are identified by a prefix on the
Propertyname.- Parameters:
source-SourceProperties.propertyPrefix- Name prefix to identify thePropertyinstances to copy.target-PropertyConfigurable.
-
copyPrefixedProperties
public static void copyPrefixedProperties(SourceProperties source, java.lang.String propertyPrefix, PropertyList target)
Copies all
Propertyinstances with the name prefix from theSourcePropertiesto thePropertyConfigurable.This is useful for copying a list of properties that are identified by a prefix on the
Propertyname.- Parameters:
source-SourceProperties.propertyPrefix- Name prefix to identify thePropertyinstances to copy.target-PropertyConfigurable.
-
-