Package com.adobe.xfa.ut
Class MsgFormat
- java.lang.Object
-
- com.adobe.xfa.ut.MsgFormat
-
public class MsgFormat extends Object
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 Constructor Description MsgFormat(int nResId)
Resource Id ConstructorMsgFormat(int nResId, String sOut)
Resource Id ConstructorMsgFormat(MsgFormat oSource)
Copy ConstructorMsgFormat(String sSource)
String ConstructorMsgFormat(String sSource, String sOut)
String Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MsgFormat
assign(MsgFormat oSource)
Assignment operator.MsgFormat
format(String sOut)
formatting operator.String
getParm(int nIndex)
Retrieve the nth parameter as a stringint
getParmCount()
Retrieve the size of the parameter listint
resId()
Retrieve the resource idString
sourceString()
Retrieve the source stringString
toString()
Conversion operator.
-
-
-
Constructor Detail
-
MsgFormat
public MsgFormat(MsgFormat oSource)
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
public MsgFormat(int nResId, String sOut)
Resource Id Constructor- Parameters:
nResId
- Resource Id representing a string to be formattedsOut
- input value to be applied to the format
-
MsgFormat
public MsgFormat(String sSource)
String Constructor- Parameters:
sSource
- string to be formatted
-
-
Method Detail
-
assign
public MsgFormat assign(MsgFormat oSource)
Assignment operator.- Parameters:
oSource
- MsgFormat to be copied
-
format
public MsgFormat format(String sOut)
formatting operator.- Parameters:
sOut
- input value to be applied to the format
-
getParm
public String getParm(int nIndex)
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
public String sourceString()
Retrieve the source string- Returns:
- the source string for this
-
-