Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ANCHOR_DELIMITER
Default anchor delimiter.
|
static String |
DEFAULT_HTML_ELEMENT_NAME
Default HTML element name.
|
static String |
DEFAULT_QUOTE
Default quote.
|
static String |
DEFAULT_URL_ATTRIBUTE_KEY
Default URL attribute key.
|
Constructor and Description |
---|
LinkStringStyle()
Create link style with default settings.
|
Modifier and Type | Method and Description |
---|---|
String |
getAnchorDelimiter()
Get an anchor delimiter symbol to construct url with anchor, by default '#'.
|
String |
getHtmlElementName()
Get a name of the result HTML tag to replace default </a>.
|
String |
getHtmlType()
Get a key of type attribute, by default 'type'.
|
String |
getQuoteSymbol()
Get a quote symbol to generate attributes, by default "\"".
|
String |
getUrlAttributeKey()
Get a key of url attribute, by default 'href'.
|
LinkStringStyle |
withAnchorDelimiter(String delimiter)
Set the anchor delimiter symbol.
|
LinkStringStyle |
withHtmlElementName(String element)
Set the html element name.
|
LinkStringStyle |
withQuoteSymbol(String symbol)
Set the quote symbol.
|
LinkStringStyle |
withTypeAttributeKey(String key)
Set the type attribute key.
|
LinkStringStyle |
withUrlAttributeKey(String key)
Set the url attribute key.
|
public static final String DEFAULT_HTML_ELEMENT_NAME
public static final String DEFAULT_URL_ATTRIBUTE_KEY
public static final String DEFAULT_QUOTE
public static final String DEFAULT_ANCHOR_DELIMITER
public LinkStringStyle()
public LinkStringStyle withHtmlElementName(String element)
element
- the html element name, if null reverts defaultLinkStringStyle
instancepublic LinkStringStyle withTypeAttributeKey(String key)
key
- the type key, if null reverts defaultLinkStringStyle
instancepublic LinkStringStyle withUrlAttributeKey(String key)
key
- the url key, if null reverts defaultLinkStringStyle
instancepublic LinkStringStyle withAnchorDelimiter(String delimiter)
delimiter
- the anchor delimiter, if null reverts defaultLinkStringStyle
instancepublic LinkStringStyle withQuoteSymbol(String symbol)
symbol
- the quote symbol, if null reverts defaultLinkStringStyle
instancepublic String getHtmlElementName()
public String getHtmlType()
public String getUrlAttributeKey()
public String getAnchorDelimiter()
public String getQuoteSymbol()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries