このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XStringSubstitution
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: util ::

interface XStringSubstitution
Description
A ありふれた interface for 代用品,人ing string variables with other strings.

The substitution algorithm and the syntax for a string variable are not part of this interface 鮮明度/定義. Please look at the documentation of the 実施 that must 明示する these parameters.

Since
OOo 1.1.2

Methods' 要約
substituteVariables 交流s variables inside a given text with a substitution text defined for the variables.  
reSubstituteVariables Tries to 取って代わる parts of aText with variables that 代表するs these sub strings.  
getSubstituteVariableValue Returns the 現在の value of a variable.  
Methods' 詳細(に述べる)s
substituteVariables
string
substituteVariables( [in] string  aText,
[in] boolean  bSubstRequired )
raises( ::com::sun::星/主役にする::コンテナ::NoSuchElementException );

Description
交流s variables inside a given text with a substitution text defined for the variables.

The method iterates through it's 内部の variables 名簿(に載せる)/表(にあげる) to match the variables in the given string. A match 取って代わるs the variable with the string defined for this variable. If no variable can be 設立する in the string it will be returned 不変の. The 行為 if a variable is 設立する in the string but it is unknown for the 実施 depends on the parameter bSubstRequired.

Parameter aText
A string 含む/封じ込めるing variables that should be 代用品,人d.
Parameter bSubstRequired
明示するs if a successfull substitution is 要求するd. The 機能(する)/行事 throws a ::com::sun::星/主役にする::コンテナ::NoSuchElementException if it finds a variable that is unknown. In this 事例/患者 it is possible that the returned string would not be what the 報知係 推定する/予想するd!
Returns
Returns a string based on aText where all variables were 交流d with their value defined at calling time.
reSubstituteVariables
string
reSubstituteVariables( [in] string  aText );

Description
Tries to 取って代わる parts of aText with variables that 代表するs these sub strings.

The method iterates through it's 内部の variable 名簿(に載せる)/表(にあげる) and tries to match parts of the given string Tries to 取って代わる parts of aText with variables that 代表するs these sub strings.If more than one variable matches the one with the longest matching sub string will be chosen.

Parameter aText
A string where known substrings should be 取って代わるd by variables.
Returns
Returns the resubstituted string with variables for all parts that could be 取って代わるd. The 不変の argument will be returned if nothing can be resubtituted.
getSubstituteVariableValue
string
getSubstituteVariableValue( [in] string  variable )
raises( ::com::sun::星/主役にする::コンテナ::NoSuchElementException );

Description
Returns the 現在の value of a variable.

The method iterates through it's 内部の variable 名簿(に載せる)/表(にあげる) and tries to find the given variable. If the variable is unkown a ::com::sun::星/主役にする::コンテナ::NoSuchElementException is thrown.

Parameter variable
The 指名する of a variable.
Returns
Returns a string that 代表するs the variable. If the variable is unknown a ::com::sun::星/主役にする::コンテナ::NoSuchElementException is thrown.
最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.