public interface ValidationGroup
ResourceTypeDef.validate(com.bea.wli.config.Ref, T, com.bea.wli.config.resource.Diagnostics, com.bea.wli.config.spi.ValidationContext)
) can only perform validation based on the value of a resource and its dependencies. It cannot validate resources of the same type that are logically correlated by some common value. This interface allows users to correlate resource instances with the same attribute value. A common usage is to validate that no two resource instance of a particular type has the same attribute value.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCorrelationAttribute()
Returns the name of the attribute (key) whose value is used to correlate and group resource instances
|
void |
validate(java.lang.Object attributeValue, java.util.Map<Ref,Diagnostics> diagnosticMap, ValidationContext context)
The implementations of this method should validate the resources whose references are passed in the diagnosticMap map, and add and diagnostic information to the corresponding Diagnostics object.
|
java.lang.String getCorrelationAttribute()
void validate(java.lang.Object attributeValue, java.util.Map<Ref,Diagnostics> diagnosticMap, ValidationContext context)
attributeValue
- the value of the correlation attribute. All resources in the diagnosticMap have this as the value of their correlation attribute.diagnosticMap
- map from resource references to the corresponding diagnostics.context
- the diagnostic context containing extra information.