/* * [AssignCSSClassesForCherokeeObama.java] * * Summary: Determine the css class for a given URL for Mindprod.com. * * Copyright: (c) 2011-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 2011-01-10 initial version * 1.1 2012-11-16 add isAffiliate to automatically mark affiliate links */ package com.mindprod.htmlmacros.support; import java.io.File; /** * Determine the css class for a given URL for Mindprod.com. *

* Also puts links on single line with canonical spacing. *

* * @author Roedy Green, Canadian Mind Products * @version 1.1 2012-11-16 add isAffiliate to automatically mark affiliate links * @noinspection WeakerAccess * @see com.mindprod.htmlmacros.support.ConfigurationForMindprod * @since 2011-01-10 */ public final class AssignCSSClassesForCherokeeObama implements AssignCSSClasses { /** * compute a better htmlClass given the URL * * @param url URL of link, full or relative * @param fileBeingDistributed where link is embedded. Needed to recognise class of local links without any dir * names. Normally where link is embedded does not matter, but for links without dir * we need to find embedding dir. * * @return css class for this link, nell for none */ public String assignCSSClass( final String url, final File fileBeingDistributed ) { return null; } /** * do we consider disturbing this class of link? Some classes we manually assign, and we do not want them changed. * * @param htmlClass class of URL we are considering disturbing * * @return true if ok to disturb */ public boolean isCSSClassModifiable( final String htmlClass ) { return false; } /** * does this file need its CSS classes repaired? * * @param fileBeingProcessed file in question */ public boolean needsCSSRepair( File fileBeingProcessed ) { return false; } }