Package com.adobe.xfa.ut
Class MsgFormat
java.lang.Object
com.adobe.xfa.ut.MsgFormat
Public header file for class MsgFormat: format strings -- usually messages,
often used with jfExFull. MsgFormat will perform place-holder substitution
(%s).
Note: Where place-holder substitution must be position-dependent, use
MsgFormatPos.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MsgFormat
Copy Constructor- Parameters:
oSource- MsgFormat to be copied
-
MsgFormat
public MsgFormat(int nResId) Resource Id Constructor- Parameters:
nResId- Resource Id representing a string to be formatted
-
MsgFormat
Resource Id Constructor- Parameters:
nResId- Resource Id representing a string to be formattedsOut- input value to be applied to the format
-
MsgFormat
String Constructor- Parameters:
sSource- string to be formatted
-
MsgFormat
String Constructor- Parameters:
sSource- string to be formattedsOut- input value to be applied to the format
-
-
Method Details
-
assign
Assignment operator.- Parameters:
oSource- MsgFormat to be copied
-
format
formatting operator.- Parameters:
sOut- input value to be applied to the format
-
getParm
Retrieve the nth parameter as a string- Returns:
- the nth parameter as a string
-
getParmCount
public int getParmCount()Retrieve the size of the parameter list- Returns:
- the size of the parameter list
-
resId
public int resId()Retrieve the resource id- Returns:
- the resource id for this
-
sourceString
Retrieve the source string- Returns:
- the source string for this
-
toString
Conversion operator.
-