This page was generated using Webiyo. See its source code and unit tests.
|
org/webiyo/examples/sourceforge/SiteMap.javapackage org.webiyo.examples.sourceforge; import org.webiyo.examples.viewjava.SourceFile; import org.webiyo.examples.viewjava.SourceIndex; import org.webiyo.examples.viewjava.ViewJavaLocations; import org.webiyo.web.Location; class SiteMap { public static final String BASE = "SOURCEFORGE_BASE"; public static final Location STYLESHEET = new Location(BASE, "style.css"); public static final Location HOME = new Location(BASE, "index.html"); public static final Location CHANGELOG = new Location(BASE, "changeLog.html"); public static final Location SOURCE_DIR = new Location(BASE, "src/"); public static final Location SOURCE_INDEX = new Location(SOURCE_DIR, ViewJavaLocations.INDEX); public static Location getSourcePageLocation(SourceFile file) { return new Location(SOURCE_DIR, ViewJavaLocations.getSourcePageLocation(file)); } public static Location getSourcePageLocation(SourceIndex sourceIndex, String className) { SourceFile file = sourceIndex.getSourceFile(className); if (file == null) return null; return getSourcePageLocation(file); } private SiteMap() { } } |