public void print ( PCM pcm ) { // We start by listing the names of the products System . out . println ( "--- Products ---" ) ; for ( Product product : pcm . getProducts ( ) ) { System . out . println ( product . getKeyContent ( ) ) ; } // Then, we use a visitor to print the content of the cells that represent a boolean value // System.out.println("--- Boolean values ---"); pcm . accept ( this ) ; }
Print some information contained in a PCM