private void checkConformsToRegexes ( String value ) { //Not checking the datatype because the regex will always be null for non strings. this . sups ( ) . forEach ( sup -> { String regex = sup . regex ( ) ; if ( regex != null && ! Pattern . matches ( regex , value ) ) { throw TransactionException . regexFailure ( this , value , regex ) ; } } ) ; }
Checks if all the regex s of the types of this resource conforms to the value provided .