biz.c24.io.api.data
Interface ValidationRule

All Superinterfaces:
ModelComponent, Serializable, Validator
All Known Implementing Classes:
ContextualValidationRule, DatabaseLookupValidationRule, DefaultValidationRule, DomainConstraint, IdentifierOfCreditorValidator, IdentifierOfCreditorValidatorXT33, ISO13616IBANValidator, ISO3166CountryValidationRule, ISO4217CurrencyAmountAttributeValidator, ISO4217CurrencyAmountValidator, ISO4217CurrencyAttributeValidator, ISO4217CurrencyValidator, ISO9362BICValidationRule, LTAddressValidator, SimpleValidator, Swdml31Validator, SwdmlEqd42Validator, SwdmlGenericValidator, SwdmlIrd42Validator, SwdmlValidator, SwiftCurrency_PCT_REN_YLD_Validator, SwiftFieldValidationRule, SwiftPartyFieldJValidator, SwiftQualifierValidator, TARGET2Validator, ValueDateRule, XPathRule, XQueryRule, XsltValidator

public interface ValidationRule
extends Validator, ModelComponent

A codified rule which will validate the content of a data object.


Method Summary
 Annotation getAnnotation()
          Returns the annotation associated with this rule.
 String getDependentPredicateCode(int index)
          Returns the dependent predicate code at index.
 int getDependentPredicateCodeCount()
          Returns the number of dependent predicate codes associated with this rule.
 String getErrorCode()
          Returns the error code associated with this rule.
 String getPredicateCode()
          Returns the predicate code associated with this rule.
 ValidationSeverityEnum getSeverity()
          Returns the severity of this rule.
 
Methods inherited from interface biz.c24.io.api.data.Validator
validate
 
Methods inherited from interface biz.c24.io.api.data.ModelComponent
getName
 

Method Detail

getAnnotation

Annotation getAnnotation()
Returns the annotation associated with this rule.

Returns:
The annotation

getSeverity

ValidationSeverityEnum getSeverity()
Returns the severity of this rule.

Returns:
The severity.

getErrorCode

String getErrorCode()
Returns the error code associated with this rule.

Returns:
The error code.

getPredicateCode

String getPredicateCode()
Returns the predicate code associated with this rule.

Returns:
The predicate code.

getDependentPredicateCodeCount

int getDependentPredicateCodeCount()
Returns the number of dependent predicate codes associated with this rule.

Returns:
The count.

getDependentPredicateCode

String getDependentPredicateCode(int index)
Returns the dependent predicate code at index.

Parameters:
index - the index of the code to return.
Returns:
The code.


C24 Technologies © 2002-2012: All Rights Reserved.