Class SiteParameterWrapper<T>

Type Parameters:
T - Type of the element value

Definition of a Site parameter.
  • Field Details

    • _siteTypes

      protected Set<String> _siteTypes
      The list of site types to which this parameter belongs, or null for no restriction.
  • Constructor Details

  • Method Details

    • getSiteTypes

      public Set<String> getSiteTypes()
      Get the site type restriction, null for no restriction.
      Returns:
      the site types or null for no restriction.
    • setSiteTypes

      public void setSiteTypes(Set<String> siteTypes)
      Set the site type restriction, null for no restriction.
      Parameters:
      siteTypes - the site types to set.
    • isInSiteType

      public boolean isInSiteType(String siteType)
      Test if the parameter is to appear in the specified site type.
      Parameters:
      siteType - the site type name (i.e. 'default', 'blog'...)
      Returns:
      true to appear, false otherwise.