Boolean prevalidateObject ( MtasParserObject object , Map < String , List < MtasParserObject > > currentList ) { MtasParserType objectType = object . getType ( ) ; List < MtasParserMapping < ? > > mappings = objectType . getItems ( ) ; if ( mappings . isEmpty ( ) ) { return true ; } for ( MtasParserMapping < ? > mapping : mappings ) { try { precheckMappingConditions ( object , mapping . getConditions ( ) , currentList ) ; return true ; } catch ( MtasParserException e ) { log . debug ( e ) ; } } return false ; }
Prevalidate object .