/* * [Cite.java] * * Summary: Expands HTML Cite macro facade for stores.Cite. * * Copyright: (c) 2009-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.0 2009-09-01 initial version, simplification of BookMacr */ package com.mindprod.htmlmacros.macro; import static java.lang.System.*; /** * Expands HTML Cite macro facade for stores.Cite. * * @author Roedy Green, Canadian Mind Products * @version 1.0 2009-09-01 initial version, simplification of BookMacr * @since 2009 */ public final class Cite extends com.mindprod.stores.CiteMacro { /** * Generate a simple book referral. The real work is done by the amazon.Book class * @param parms from * embedded macro * * @param quiet true if want output suppressed. * @param verbose @return expanded macro */ public String expandMacro( String[] parms, final boolean quiet, final boolean verbose ) { if ( !quiet ) { // indicate we handled an Book macro on the console out.print( "C" ); } // use implementation in com.mindprod.stores.Book. return super.expandMacro( parms, quiet, verbose ); } } // end Cite