T
- Type of the element valuepublic class SiteParameter<T> extends CategorizedElementDefinitionProxy<T>
Site
parameter.Modifier and Type | Field and Description |
---|---|
protected Set<String> |
_siteTypes
The list of site types to which this parameter belongs, or null for no restriction.
|
ITEM_PATH_SEPARATOR
Constructor and Description |
---|
SiteParameter() |
Modifier and Type | Method and Description |
---|---|
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 |
setSiteTypes(Set<String> siteTypes)
Set the site type restriction, null for no restriction.
|
String |
toString() |
addItemChecker, compareTo, equals, getDefaultValue, getDefinition, getDescription, getDisableConditions, getDisplayCategory, getDisplayGroup, getEnumerator, getItemCheckers, getLabel, getModel, getName, getParent, getPath, getPluginName, getPosition, getType, getValidator, getWidget, getWidgetParameters, hashCode, isGroupSwitch, isMultiple, setDefaultValue, setDescription, setDisableConditions, setDisplayCategory, setDisplayGroup, setEnumerator, setGroupSwitch, setLabel, setModel, setMultiple, setName, setParent, setPluginName, setPosition, setType, setValidator, setWidget, setWidgetParameters, toJSON
protected Set<String> _siteTypes
public SiteParameter()
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'...)public String toString()
toString
in class CategorizedElementDefinitionProxy<T>