package gw.systables.verifier uses gw.xml.parser2.PLXMLNode uses javax.xml.namespace.QName @ReadOnly class NotificationConfigVerifier extends EffectiveDateCheckVerifierBase { /** * Overlapping time periods must be unique in these fields. */ private static var _fieldsForOverlapChecking : String[] = { "ActionType", "Category", "LineOfBusiness", "Jurisdiction", "PremiumIncreaseThreshold", "RateIncreaseThreshold" } /** * NotificationConfigs with the same ActionType, LineOfBusiness and Jurisdiction * can not overlap */ override function getMatchingFieldsForEffectiveDateOverlapChecking() : String[] { return _fieldsForOverlapChecking } /** * Only node with matching keys are compared for overlap checking. */ override function getKeyForOverlapChecking(entity : PLXMLNode) : String { var key = "" for (f in _fieldsForOverlapChecking) { key += entity.getChildElement(QName.valueOf(f)).Text + "_" } return key } }