Class PropertiesUtil
java.lang.Object
net.officefloor.compile.impl.properties.PropertiesUtil
Utility methods for working with
Property instances.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyPrefixedProperties(SourceProperties source, String propertyPrefix, PropertyConfigurable target) Copies allPropertyinstances with the name prefix from theSourcePropertiesto thePropertyConfigurable.static voidcopyPrefixedProperties(SourceProperties source, String propertyPrefix, PropertyList target) Copies allPropertyinstances with the name prefix from theSourcePropertiesto thePropertyConfigurable.static voidcopyProperties(SourceProperties source, PropertyConfigurable target, String... propertyNames) static voidcopyProperties(SourceProperties source, PropertyList target, String... propertyNames)
-
Method Details
-
copyProperties
public static void copyProperties(SourceProperties source, PropertyConfigurable target, 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, 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, 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, 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.
-