Class BooleanStyle

java.lang.Object
com.independentsoft.office.odf.styles.Style
com.independentsoft.office.odf.styles.BooleanStyle

public class BooleanStyle extends Style
Represents a style for decimal numbers.
  • Constructor Details

    • BooleanStyle

      public BooleanStyle()
      Initializes a new instance of the BooleanStyle class.
    • BooleanStyle

      public BooleanStyle(String name)
      Initializes a new instance of the BooleanStyle class.
      Parameters:
      name - the name
  • Method Details

    • clone

      public BooleanStyle clone()
      Creates a new object that is a deep copy of the current instance.
      Specified by:
      clone in class Style
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current BooleanStyle object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • setLanguage

      public void setLanguage(String language)
      Sets the language code.
      Parameters:
      language - the new language
    • getCountry

      public String getCountry()
      Gets the country code for a data style.
      Returns:
      the country
    • setCountry

      public void setCountry(String country)
      Sets the country code for a data style.
      Parameters:
      country - the new country
    • getTitle

      public String getTitle()
      Gets the title of a data style.
      Returns:
      the title
    • setTitle

      public void setTitle(String title)
      Sets the title of a data style.
      Parameters:
      title - the new title
    • isVolatile

      public boolean isVolatile()
      Specifies whether unused style in a document are retained or discarded by consumers.
      Returns:
      true, if is volatile
    • setVolatile

      public void setVolatile(boolean isVolatile)
      Specifies whether unused style in a document are retained or discarded by consumers.
      Parameters:
      isVolatile - the new volatile
    • getTransliterationFormat

      public String getTransliterationFormat()
      Specifies which number characters to use.
      Returns:
      the transliteration format
    • setTransliterationFormat

      public void setTransliterationFormat(String transliterationFormat)
      Specifies which number characters to use.
      Parameters:
      transliterationFormat - the new transliteration format
    • getTransliterationLanguage

      public String getTransliterationLanguage()
      Gets the language code in conformance with [RFC5646].
      Returns:
      the transliteration language
    • setTransliterationLanguage

      public void setTransliterationLanguage(String transliterationLanguage)
      Sets the language code in conformance with [RFC5646].
      Parameters:
      transliterationLanguage - the new transliteration language
    • getTransliterationCountry

      public String getTransliterationCountry()
      Gets the country code in conformance with [RFC5646].
      Returns:
      the transliteration country
    • setTransliterationCountry

      public void setTransliterationCountry(String transliterationCountry)
      Sets the country code in conformance with [RFC5646].
      Parameters:
      transliterationCountry - the new transliteration country
    • getTransliterationStyle

      public TransliterationStyle getTransliterationStyle()
      Gets the transliteration-format of a number system.
      Returns:
      the transliteration style
    • setTransliterationStyle

      public void setTransliterationStyle(TransliterationStyle transliterationStyle)
      Sets the transliteration-format of a number system.
      Parameters:
      transliterationStyle - the new transliteration style
    • getTextProperties

      public TextProperties getTextProperties()
      Specifies formatting properties for text.
      Returns:
      the text properties
    • getPrefixText

      public String getPrefixText()
      Specifies what to display before a number.
      Returns:
      the prefix text
    • setPrefixText

      public void setPrefixText(String prefixText)
      Specifies what to display before a number.
      Parameters:
      prefixText - the new prefix text
    • getSuffixText

      public String getSuffixText()
      Specifies what to display before and after the number.
      Returns:
      the suffix text
    • setSuffixText

      public void setSuffixText(String suffixText)
      Specifies what to display before and after the number.
      Parameters:
      suffixText - the new suffix text
    • getStyleMappings

      public List<StyleMapping> getStyleMappings()
      Contains a collection of StyleMapping objects.
      Returns:
      the style mappings
    • isBoolean

      public boolean isBoolean()
      Gets the Boolean value of a Boolean style.
      Returns:
      true, if is boolean
    • setBoolean

      public void setBoolean(boolean isBoolean)
      Sets the Boolean value of a Boolean style.
      Parameters:
      isBoolean - the new boolean