public Class < ? > getBody ( String message ) { final Set < IdentifierLine > identifierLines = this . definitions . keySet ( ) ; final IdentifierLine messageId = new IdentifierLine ( ) ; for ( IdentifierLine id : identifierLines ) { final Map < Integer , String > mapIds = id . getMapIds ( ) ; final Set < Integer > keys = mapIds . keySet ( ) ; for ( Integer startPosition : keys ) { final String textId = mapIds . get ( startPosition ) ; int sizeText = textId . length ( ) ; int finalPosition = startPosition + sizeText ; if ( finalPosition > message . length ( ) ) { break ; } messageId . putId ( startPosition , message . substring ( startPosition , finalPosition ) ) ; } if ( id . equals ( messageId ) ) { this . body = this . definitions . get ( messageId ) ; break ; } else { messageId . getMapIds ( ) . clear ( ) ; } } if ( this . body == null ) { throw new FFPojoException ( String . format ( "No class matches with the line starting with: %s " , getStartWithText ( message ) ) ) ; } return this . body ; }
GETTERS AND SETTERS