public interface EscapeTextBuilder extends Text<EscapeTextBuilder>
TextAccessor.TextBuilder<B extends TextAccessor.TextBuilder<B>>, TextAccessor.TextMutator, TextAccessor.TextProperty, TextAccessor.TextProvider
Modifier and Type | Method and Description |
---|---|
EscapeTextBuilder |
addEscapeProperty(org.refcodes.structure.Property aProperty)
Adds the escape property.
|
EscapeTextBuilder |
addEscapeProperty(String aKey,
String aValue)
Adds the escape property.
|
org.refcodes.structure.Property[] |
getEscapeProperties()
Gets the escape properties.
|
EscapeTextMode |
getEscapeTextMode()
Retrieves the escape text mode from the escape text mode property.
|
void |
setEscapeProperties(org.refcodes.structure.Property... aProperties)
Sets the escape properties.
|
void |
setEscapeTextMode(EscapeTextMode aEscapeTextMode)
Sets the escape text mode for the escape text mode property.
|
String |
toString()
The
String being escaped by the builder upon the settings of the
attributes. |
String[] |
toStrings()
The
String s being escaped by the builder upon the settings of the
attributes. |
default EscapeTextBuilder |
withEscapeProperties(org.refcodes.structure.Property... aProperties)
With escape properties.
|
default EscapeTextBuilder |
withEscapeTextMode(EscapeTextMode aEscapeTextMode)
Sets the escape text mode for the escape text mode property.
|
getText
setText, setText
withText
EscapeTextMode getEscapeTextMode()
void setEscapeTextMode(EscapeTextMode aEscapeTextMode)
aEscapeTextMode
- The escape text mode to be stored by the align
text mode property.default EscapeTextBuilder withEscapeTextMode(EscapeTextMode aEscapeTextMode)
aEscapeTextMode
- The escape text mode to be stored by the align
text mode property.org.refcodes.structure.Property[] getEscapeProperties()
void setEscapeProperties(org.refcodes.structure.Property... aProperties)
aProperties
- the new escape propertiesdefault EscapeTextBuilder withEscapeProperties(org.refcodes.structure.Property... aProperties)
aProperties
- the propertiesEscapeTextBuilder addEscapeProperty(org.refcodes.structure.Property aProperty)
aProperty
- the propertyEscapeTextBuilder addEscapeProperty(String aKey, String aValue)
aKey
- the keyaValue
- the valueString[] toStrings()
String
s being escaped by the builder upon the settings of the
attributes.toStrings
in interface TextAccessor.TextProvider
String
arrayString toString() throws IllegalStateException
String
being escaped by the builder upon the settings of the
attributes.toString
in interface TextAccessor.TextProvider
toString
in class Object
String
IllegalStateException
- Thrown in case more than one text line has
been set via the Text.withText(String...)
or
TextAccessor.TextMutator.setText(String...)
methods.Copyright © 2018. All rights reserved.