Class RaConfigContext.IfPropertyValue
- java.lang.Object
-
- com.opencloud.slee.upgrade.transformation.model.RaConfigContext
-
- com.opencloud.slee.upgrade.transformation.model.RaConfigContext.IfPropertyValue
-
- Enclosing class:
- RaConfigContext
public static final class RaConfigContext.IfPropertyValue extends RaConfigContext
Matches RA entities based on the value of a particular configuration property.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.opencloud.slee.upgrade.transformation.model.RaConfigContext
RaConfigContext.IfPropertyValue, RaConfigContext.RaEntity
-
-
Constructor Summary
Constructors Constructor Description IfPropertyValue(java.lang.String name, StringMatcher value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getName()
Returns the name of the property to match against.StringMatcher
getValue()
Returns theStringMatcher
which is used to match against the property value.int
hashCode()
ResultAndWarnings<java.lang.Boolean>
matchesEntity(com.opencloud.slee.data.migration.RAEntityData raEntityData)
Returns whether or not the given RA entity data matches this context, along with any warnings gathered while matching.java.lang.String
toString()
-
-
-
Constructor Detail
-
IfPropertyValue
public IfPropertyValue(@Nonnull java.lang.String name, @Nonnull StringMatcher value)
- Parameters:
name
- The name of the property to match against.value
- Matches against the current value of the configuration property.
-
-
Method Detail
-
matchesEntity
@Nonnull public ResultAndWarnings<java.lang.Boolean> matchesEntity(@Nonnull com.opencloud.slee.data.migration.RAEntityData raEntityData)
Description copied from class:RaConfigContext
Returns whether or not the given RA entity data matches this context, along with any warnings gathered while matching.- Specified by:
matchesEntity
in classRaConfigContext
-
getName
@Nonnull public java.lang.String getName()
Returns the name of the property to match against.
-
getValue
@Nonnull public StringMatcher getValue()
Returns theStringMatcher
which is used to match against the property value.
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in classRaConfigContext
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classRaConfigContext
-
toString
public java.lang.String toString()
-
-