|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xebialabs.deployit.reflect.ConfigurationItemReflectionUtils
public class ConfigurationItemReflectionUtils
Contains a number of configuration item reflection utility methods.
| Constructor Summary | |
|---|---|
ConfigurationItemReflectionUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
getRealConfigurationItem(T possibleCiProxy)
Returns the real configuration item if this is a ConfigurationItemProxy. |
|
static boolean |
isIdentical(java.io.Serializable ci1,
java.io.Serializable ci2)
Compares two configuration items and determines whether they are "identical". |
|
static boolean |
isSimilar(java.io.Serializable ci1,
java.io.Serializable ci2)
Compares two configuration items and determines whether they are "similar". |
|
static java.io.Serializable |
overrideProperties(java.io.Serializable ci,
java.util.Map<java.lang.String,java.lang.String> propertyOverrides)
Overrides named properties in the given CI with the corresponding values in the propertyOverrides map. |
|
static java.lang.Object |
toPropertyValue(ConfigurationItemPropertyDescriptor descriptor,
java.lang.String value)
Converts the string representation of the value to an object of the appropriate type for the given property, if possible. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationItemReflectionUtils()
| Method Detail |
|---|
public static <T> T getRealConfigurationItem(T possibleCiProxy)
ConfigurationItemProxy.
T - the type of the configuration itempossibleCiProxy - the object that is possibly a configuration item proxy.
public static boolean isSimilar(java.io.Serializable ci1,
java.io.Serializable ci2)
identifying properties have the same value.
ci1 - the first configration item to be comparedci2 - the second configration item to be compared
public static boolean isIdentical(java.io.Serializable ci1,
java.io.Serializable ci2)
ci1 - the first configration item to be comparedci2 - the second configration item to be compared
public static java.io.Serializable overrideProperties(java.io.Serializable ci,
java.util.Map<java.lang.String,java.lang.String> propertyOverrides)
propertyOverrides map.
N.B.: Modifes the CI passed in!
public static java.lang.Object toPropertyValue(ConfigurationItemPropertyDescriptor descriptor,
java.lang.String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||