private void processParsedValue ( final String parsed_value ) { if ( rule . getCompiledRegex ( ) == null && ( rule . getSeparator ( ) == null || rule . getSeparator ( ) . isEmpty ( ) ) ) { // we don't have a regex and we don't need to separate, so just use the // name of the timseries setCurrentName ( parsed_value , parsed_value ) ; } else if ( rule . getCompiledRegex ( ) != null ) { // we have a regex rule, so deal with it processRegexRule ( parsed_value ) ; } else if ( rule . getSeparator ( ) != null && ! rule . getSeparator ( ) . isEmpty ( ) ) { // we have a split rule, so deal with it processSplit ( parsed_value ) ; } else { throw new IllegalStateException ( "Unable to find a processor for rule: " + rule ) ; } }
Routes the parsed value to the proper processing method for altering the display name depending on the current rule . This can route to the regex handler or the split processor . Or if neither splits or regex are specified for the rule the parsed value is set as the branch name .