Class FlavorDescriptor

java.lang.Object
org.nuxeo.theme.styling.service.descriptors.FlavorDescriptor

public class FlavorDescriptor extends Object
A flavor represents the set of information that can be used to switch the theme styling on a given page.

It holds presets that can be referenced in CSS files, as well as logo information. It can extend another flavor, in case it will its logo and presets. The name and label are not inherited.

At registration, presets and log information are merged of a previous contribution with the same name already held that kind of information. When emptying the list of presets.

Since:
5.5
  • Constructor Details

    • FlavorDescriptor

      public FlavorDescriptor()
  • Method Details

    • clone

      public FlavorDescriptor clone()
      Overrides:
      clone in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getAppendPresets

      public boolean getAppendPresets()
    • getAppendSass

      public boolean getAppendSass()
      Since:
      7.4
    • getExtendsFlavor

      public String getExtendsFlavor()
    • getFavicons

      public List<IconDescriptor> getFavicons()
      Since:
      7.4
    • getLabel

      public String getLabel()
    • getLogo

      public LogoDescriptor getLogo()
    • getName

      public String getName()
    • getPalettePreview

      public PalettePreview getPalettePreview()
    • getPresets

      public List<FlavorPresets> getPresets()
    • getSassImports

      public List<SassImport> getSassImports()
      Since:
      7.4
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • merge

      public void merge(FlavorDescriptor src)
    • setAppendPresets

      public void setAppendPresets(boolean appendPresets)
    • setAppendSass

      public void setAppendSass(boolean appendSass)
      Since:
      7.4
    • setExtendsFlavor

      public void setExtendsFlavor(String extendsFlavor)
    • setFavicons

      public void setFavicons(List<IconDescriptor> favicons)
      Since:
      7.4
    • setLabel

      public void setLabel(String label)
    • setLogo

      public void setLogo(LogoDescriptor logo)
    • setName

      public void setName(String name)
    • setPalettePreview

      public void setPalettePreview(PalettePreview palettePreview)
    • setPresets

      public void setPresets(List<FlavorPresets> presets)
    • setSassImports

      public void setSassImports(List<SassImport> sassImports)
      Since:
      7.4