Class ThemeUsageConfig


  • public class ThemeUsageConfig
    extends java.lang.Object
    Theme appliance configuration. This class represents a theme appliance of a given element. Does not consider re inherited themes.
    Since:
    7.0.0
    Version:
    $Revision: 15055 $ $Date: 2012-11-29 18:48:37 -0200 (Thu, 29 Nov 2012) $
    • Constructor Summary

      Constructors 
      Constructor Description
      ThemeUsageConfig​(boolean inherited, java.util.List<java.lang.String> appliedThemeIds)
      Creates a new instance with the given parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getAppliedThemeIds()
      Returns the (locally) applied themes identifiers.
      java.util.List<java.lang.String> getAppliedThemeIdsForThemeResolving()
      Returns the (locally) applied themes identifiers for theme resolving.
      boolean isInherited()
      Returns whether this configuration is inheriting the applied themes or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThemeUsageConfig

        public ThemeUsageConfig​(boolean inherited,
                                java.util.List<java.lang.String> appliedThemeIds)
        Creates a new instance with the given parameters.
        Parameters:
        inherited - indicates whether this configuration is inherited or not.
        appliedThemeIds - the (locally) applied themes.
        Throws:
        java.lang.IllegalArgumentException - if inherited is true and appliedThemeIds is not empty.
        Since:
        7.0.0
    • Method Detail

      • getAppliedThemeIds

        public java.util.List<java.lang.String> getAppliedThemeIds()
        Returns the (locally) applied themes identifiers.
        Returns:
        the (locally) applied themes identifiers.
        Since:
        7.0.0
      • getAppliedThemeIdsForThemeResolving

        public java.util.List<java.lang.String> getAppliedThemeIdsForThemeResolving()
        Returns the (locally) applied themes identifiers for theme resolving. This method returns the same list returned by getAppliedThemeIds() but in a reversed order.
        Returns:
        the (locally) applied themes identifiers for theme resolving.
        Since:
        7.0.0
      • isInherited

        public boolean isInherited()
        Returns whether this configuration is inheriting the applied themes or not.
        Returns:
        whether this configuration is inheriting the applied themes or not.
        Since:
        7.0.0