public static Text createTextElement ( String tapLine ) { Matcher m = Patterns . TEXT_PATTERN . matcher ( tapLine ) ; if ( m . matches ( ) ) { Text result = new Text ( tapLine ) ; result . setIndentationString ( m . group ( 1 ) ) ; result . indentation = m . group ( 1 ) . length ( ) ; return result ; } return null ; }
Create a text element . This element is created when none of the other elements have matched the TAP stream line .