public static HpelFormatter getFormatter ( String formatStyle ) { if ( formatStyle != null && ! "" . equals ( formatStyle ) ) { if ( formatStyle . equalsIgnoreCase ( FORMAT_BASIC ) ) { return new HpelBasicFormatter ( ) ; } else if ( formatStyle . equalsIgnoreCase ( FORMAT_ADVANCED ) ) { return new HpelAdvancedFormatter ( ) ; } else if ( formatStyle . equalsIgnoreCase ( FORMAT_CBE101 ) ) { return new HpelCBEFormatter ( ) ; } else if ( formatStyle . equalsIgnoreCase ( FORMAT_JSON ) ) { return new HpelJsonFormatter ( ) ; } } throw new IllegalArgumentException ( formatStyle + " is not a valid formatter style" ) ; }
Returns the HpelFormatter subclass instance to be used for formatting a RepositoryLogRecord . The formatter returned is based on the formatStyle requested .