public class SiteParameter extends Parameter<ParameterHelper.ParameterType>
Site
parameter.Modifier and Type | Field and Description |
---|---|
protected I18nizableText |
_displayCategory
The display category.
|
protected I18nizableText |
_displayGroup
The display group.
|
protected Set<String> |
_siteTypes
The list of site types to which this parameter belongs, or null for no restriction.
|
Constructor and Description |
---|
SiteParameter() |
Modifier and Type | Method and Description |
---|---|
I18nizableText |
getDisplayCategory()
Get the display category.
|
I18nizableText |
getDisplayGroup()
Get the display group.
|
Set<String> |
getSiteTypes()
Get the site type restriction, null for no restriction.
|
boolean |
isInSiteType(String siteType)
Test if the parameter is to appear in the specified site type.
|
void |
setDisplayCategory(I18nizableText displayCategory)
Set the parameter display category.
|
void |
setDisplayGroup(I18nizableText displayGroup)
Set the parameter display group.
|
void |
setSiteTypes(Set<String> siteTypes)
Set the site type restriction, null for no restriction.
|
String |
toString() |
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
protected I18nizableText _displayCategory
protected I18nizableText _displayGroup
protected Set<String> _siteTypes
public SiteParameter()
public I18nizableText getDisplayCategory()
public void setDisplayCategory(I18nizableText displayCategory)
displayCategory
- the display category to set.public I18nizableText getDisplayGroup()
public void setDisplayGroup(I18nizableText displayGroup)
displayGroup
- the display group to set.public Set<String> getSiteTypes()
public void setSiteTypes(Set<String> siteTypes)
siteTypes
- the site types to set.public boolean isInSiteType(String siteType)
siteType
- the site type name (i.e. 'default', 'blog'...)