public static class StaticRichTextConfiguration.StaticRichTextConfigurationAttribute extends Object implements RichTextConfigurationAttribute
StaticRichTextConfiguration.StaticRichTextConfigurationAttribute
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
_authorizedValues
The possible values
|
protected String |
_defaultValue
The default value
|
protected String |
_name
The name of the attribute
|
protected Set<String> |
_technicalValues
The technical values
|
Modifier | Constructor and Description |
---|---|
protected |
StaticRichTextConfigurationAttribute(Configuration configuration)
Create by configuration
|
|
StaticRichTextConfigurationAttribute(String name,
String defaultValue,
Set<String> authorizedValues,
Set<String> technicalValues)
Create by values
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAuthorizedValues()
Get the values that can be used on this attribute.
|
String |
getDefaultValue()
Get the default value for this attribute.
|
String |
getName()
Get the attribute name
|
Set<String> |
getTechnicalValues()
Only applyable to the "class" attribute.
Between the authorized values, some are "technical" values (by opposition to "style" values). |
protected String _defaultValue
protected Set<String> _authorizedValues
protected Set<String> _technicalValues
public StaticRichTextConfigurationAttribute(String name, String defaultValue, Set<String> authorizedValues, Set<String> technicalValues)
name
- The attribute name. Cannot be null.defaultValue
- The default value. Can be nullauthorizedValues
- A non-null set of authorized values. Must contains the default value.technicalValues
- A non-null set of technical values. Must contains the default value.protected StaticRichTextConfigurationAttribute(Configuration configuration) throws ConfigurationException
configuration
- The tag configurationConfigurationException
- If an error occurredpublic String getName()
RichTextConfigurationAttribute
getName
in interface RichTextConfigurationAttribute
public String getDefaultValue()
RichTextConfigurationAttribute
getDefaultValue
in interface RichTextConfigurationAttribute
public Set<String> getAuthorizedValues()
RichTextConfigurationAttribute
getAuthorizedValues
in interface RichTextConfigurationAttribute
public Set<String> getTechnicalValues()
RichTextConfigurationAttribute
getTechnicalValues
in interface RichTextConfigurationAttribute