TextUtils

org.freeplane.core.util

## クラス TextUtils

- java.lang.Object
- - org.freeplane.core.util.TextUtils

-     public class TextUtils
      extends java.lang.Object

  utilities for translations, conversions to/from number and dates etc. In scripts available as "global variable" `textUtils`.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `TextUtils()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `static void` | `copyToClipboard(java.lang.String string)` Shortcut for scripting: Copies `string` to the system clipboard.
    `static org.freeplane.core.resources.NamedObject` | `createTranslatedString(java.lang.String key)`
    `static java.lang.String` | `format(java.lang.String resourceKey, java.lang.Object... messageArguments)`
    `java.text.SimpleDateFormat` | `getDefaultDateFormat()` accessor for scripts.
    `java.text.SimpleDateFormat` | `getDefaultDateTimeFormat()` accessor for scripts.
    `java.text.DecimalFormat` | `getDefaultNumberFormat()` accessor for scripts.
    `static java.lang.String` | `getOptionalText(java.lang.String string)`
    `static java.lang.String` | `getOptionalTranslation(java.lang.String text)`
    `static java.lang.String` | `getRawText(java.lang.String key)`
    `static java.lang.String` | `getRawText(java.lang.String key, java.lang.String defaultString)`
    `static java.lang.String` | `getText(java.lang.String key)`
    `static java.lang.String` | `getText(java.lang.String key, java.lang.String defaultString)`
    `static boolean` | `isEmpty(java.lang.String str)`
    `static boolean` | `isNumber(java.lang.String text)`
    `static boolean` | `matchUriPattern(java.lang.String text)` in opposite to the URI make scheme mandatory.
    `static java.lang.String` | `removeMnemonic(java.lang.String rawLabel)`
    `static java.lang.String` | `removeTranslateComment(java.lang.String inputString)` Removes the "TranslateMe" sign from the end of not translated texts.
    `static java.lang.Number` | `toNumber(java.lang.String text)`

    - ### クラスから継承されたメソッド java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### TextUtils

          public TextUtils()

  - ### メソッドの詳細

    - #### format

          public static java.lang.String format(java.lang.String resourceKey,
                                java.lang.Object... messageArguments)

    - #### getOptionalText

          public static java.lang.String getOptionalText(java.lang.String string)

    - #### removeMnemonic

          public static java.lang.String removeMnemonic(java.lang.String rawLabel)

    - #### removeTranslateComment

          public static java.lang.String removeTranslateComment(java.lang.String inputString)

      Removes the "TranslateMe" sign from the end of not translated texts.

    - #### createTranslatedString

          public static org.freeplane.core.resources.NamedObject createTranslatedString(java.lang.String key)

    - #### getText

          public static java.lang.String getText(java.lang.String key)

    - #### getRawText

          public static java.lang.String getRawText(java.lang.String key)

    - #### getText

          public static java.lang.String getText(java.lang.String key,
                                 java.lang.String defaultString)

    - #### getRawText

          public static java.lang.String getRawText(java.lang.String key,
                                    java.lang.String defaultString)

    - #### getOptionalTranslation

          public static java.lang.String getOptionalTranslation(java.lang.String text)

    - #### toNumber

          public static java.lang.Number toNumber(java.lang.String text)
                                           throws java.lang.NumberFormatException

      例外:
        `java.lang.NumberFormatException`

    - #### isNumber

          public static boolean isNumber(java.lang.String text)

    - #### isEmpty

          public static boolean isEmpty(java.lang.String str)

    - #### matchUriPattern

          public static boolean matchUriPattern(java.lang.String text)

      in opposite to the URI make scheme mandatory.

    - #### getDefaultNumberFormat

          public java.text.DecimalFormat getDefaultNumberFormat()

      accessor for scripts.

    - #### getDefaultDateFormat

          public java.text.SimpleDateFormat getDefaultDateFormat()

      accessor for scripts.

    - #### getDefaultDateTimeFormat

          public java.text.SimpleDateFormat getDefaultDateTimeFormat()

      accessor for scripts.

    - #### copyToClipboard

          public static void copyToClipboard(java.lang.String string)

      Shortcut for scripting: Copies `string` to the system clipboard.