Interface RichTextConfigurationTag
-
- All Known Implementing Classes:
StaticRichTextConfiguration.StaticRichTextConfigurationTag
public interface RichTextConfigurationTag
A tag configuration for aRichTextConfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RichTextConfigurationTag.EMPTY_TAG
What to do if this tag is empty?
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<RichTextConfigurationAttribute>
getAttributes()
Get the attributes handled on this tagSet<String>
getSynonyms()
The tags that should be replaced by this one.String
getTag()
Get the tag name.RichTextConfigurationTag.EMPTY_TAG
onEmptyTag()
Determine the action to do when this tag is empty.
-
-
-
Method Detail
-
getTag
String getTag()
Get the tag name. Such as 'span'.- Returns:
- The tag name. Cannot be empty or null.
-
onEmptyTag
RichTextConfigurationTag.EMPTY_TAG onEmptyTag()
Determine the action to do when this tag is empty.- Returns:
- The behavior. Cannot be null.
-
getSynonyms
Set<String> getSynonyms()
The tags that should be replaced by this one. For example, "b" should be replaced by "strong". Note that if "b" is handled otherwise, it will not be replaced.- Returns:
- A non null set of tags.
-
getAttributes
Set<RichTextConfigurationAttribute> getAttributes()
Get the attributes handled on this tag- Returns:
- A non null set of attributes.
-
-