public class SiteAccessNotificationBasicValidator extends Validator
SiteAccessNotificationBasicValidator
is the Basic Validator
object of the Transaction.Modifier and Type | Field and Description |
---|---|
protected SiteAccessNotification |
transaction |
Constructor and Description |
---|
SiteAccessNotificationBasicValidator(Transaction transaction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
validate()
Validate the Transaction
|
protected boolean |
validateAccessDetails() |
protected boolean |
validateHazardDescription1() |
protected boolean |
validateHazardDescription2() |
protected boolean |
validateHazardDescription3() |
protected boolean |
validateLastModifiedDateTime() |
validateMandatoryNMIChecksum, validateNMI, validateNMIChecksum, validateTransactionDate, validateTransactionID
addEvents, getEvents, getHeader, setHeader
protected SiteAccessNotification transaction
public SiteAccessNotificationBasicValidator(Transaction transaction)
transaction
- Transaction to use in the validator.public boolean validate()
validate
in interface ValidatorInterface
validate
in class XMLObjectValidator
TransactionNotSetException
- is a transaction was not set before
validation is called.protected boolean validateAccessDetails()
protected boolean validateHazardDescription1()
protected boolean validateHazardDescription2()
protected boolean validateHazardDescription3()
protected boolean validateLastModifiedDateTime()