public String fireFactsValidate(MAcctSchema schema,List<Fact> facts,PO po){
  if (schema == null || facts == null || po == null || m_factsValidateListeners.size() == 0)   return null;
  String propertyName=po.get_TableName() + "*";
  ArrayList<FactsValidator> list=(ArrayList<FactsValidator>)m_factsValidateListeners.get(propertyName);
  if (list != null) {
    String error=fireFactsValidate(schema,facts,po,list);
    if (error != null && error.length() > 0)     return error;
  }
  propertyName=po.get_TableName() + po.getAD_Client_ID();
  list=(ArrayList<FactsValidator>)m_factsValidateListeners.get(propertyName);
  if (list != null) {
    String error=fireFactsValidate(schema,facts,po,list);
    if (error != null && error.length() > 0)     return error;
  }
  return null;
}

public String fireFactsValidate ( MAcctSchema schema , List < Fact > facts , PO po ) { if ( schema == null || facts == null || po == null || m_factsValidateListeners . size ( ) == 0 ) return null ; String propertyName = po . get_TableName ( ) + "*" ; ArrayList < FactsValidator > list = ( ArrayList < FactsValidator > ) m_factsValidateListeners . get ( propertyName ) ; if ( list != null ) { String error = fireFactsValidate ( schema , facts , po , list ) ; if ( error != null && error . length ( ) > 0 ) return error ; } propertyName = po . get_TableName ( ) + po . getAD_Client_ID ( ) ; list = ( ArrayList < FactsValidator > ) m_factsValidateListeners . get ( propertyName ) ; if ( list != null ) { String error = fireFactsValidate ( schema , facts , po , list ) ; if ( error != null && error . length ( ) > 0 ) return error ; } return null ; }
fire accounting facts validation . call factsvalidate method of added validators
