Package org.codelibs.fess.theme
Class Theme
java.lang.Object
org.codelibs.fess.theme.Theme
Immutable value object describing a registered static theme.
A Theme is backed by a theme.yml manifest under the
configured themes directory. The manifest may be
absent when unit tests construct synthetic themes without a real bundle.
-
Constructor Summary
ConstructorsConstructorDescriptionTheme(String name, Path basePath, ThemeManifest manifest) Constructs a new theme descriptor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the filesystem base path of the theme bundle.Returns the parsed manifest, if any.getName()Returns the theme name.
-
Constructor Details
-
Theme
Constructs a new theme descriptor.- Parameters:
name- theme directory namebasePath- filesystem location of the theme bundlemanifest- parsed manifest, ornullfor test fixtures without one
-
-
Method Details
-
getName
Returns the theme name.- Returns:
- the theme name
-
getBasePath
Returns the filesystem base path of the theme bundle.- Returns:
- the base path
-
getManifest
Returns the parsed manifest, if any.- Returns:
- the optional manifest
-