Class SupportsPropertyValidator
- java.lang.Object
-
- org.codehaus.cargo.sample.java.validator.AbstractConfigurationCapabilityValidator
-
- org.codehaus.cargo.sample.java.validator.SupportsPropertyValidator
-
- All Implemented Interfaces:
Validator
- Direct Known Subclasses:
HasAuthenticationSupportValidator,HasDataSourceSupportValidator,HasPortOffsetValidator,HasResourceSupportValidator,HasXAEmulationValidator,HasXASupportValidator
public class SupportsPropertyValidator extends AbstractConfigurationCapabilityValidator
Validator, that check if the container supports a given property.
-
-
Field Summary
-
Fields inherited from class org.codehaus.cargo.sample.java.validator.AbstractConfigurationCapabilityValidator
factory
-
-
Constructor Summary
Constructors Constructor Description SupportsPropertyValidator(ConfigurationType type, String supportsProperty)Saves the attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(String containerId, ContainerType containerType)Checks if the container supports the given property with the given type.
-
-
-
Constructor Detail
-
SupportsPropertyValidator
public SupportsPropertyValidator(ConfigurationType type, String supportsProperty)
Saves the attributes.- Parameters:
type- Configuration type to check.supportsProperty- Property support to check.
-
-
Method Detail
-
validate
public boolean validate(String containerId, ContainerType containerType)
Checks if the container supports the given property with the given type. Validate if a container has a given configuration.- Parameters:
containerId- Container identifier.containerType- Container type.- Returns:
trueif the given container supports the current validator,falseotherwise.
-
-