Package com.adobe.xfa.ut
Class MsgFormat
- java.lang.Object
 - 
- com.adobe.xfa.ut.MsgFormat
 
 
- 
public class MsgFormat extends java.lang.ObjectPublic 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, java.lang.String sOut)Resource Id ConstructorMsgFormat(MsgFormat oSource)Copy ConstructorMsgFormat(java.lang.String sSource)String ConstructorMsgFormat(java.lang.String sSource, java.lang.String sOut)String Constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MsgFormatassign(MsgFormat oSource)Assignment operator.MsgFormatformat(java.lang.String sOut)formatting operator.java.lang.StringgetParm(int nIndex)Retrieve the nth parameter as a stringintgetParmCount()Retrieve the size of the parameter listintresId()Retrieve the resource idjava.lang.StringsourceString()Retrieve the source stringjava.lang.StringtoString()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, java.lang.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(java.lang.String sSource)
String Constructor- Parameters:
 sSource- string to be formatted
 
- 
MsgFormat
public MsgFormat(java.lang.String sSource, java.lang.String sOut)String Constructor- Parameters:
 sSource- string to be formattedsOut- input value to be applied to the format
 
 - 
 
- 
Method Detail
- 
assign
public MsgFormat assign(MsgFormat oSource)
Assignment operator.- Parameters:
 oSource- MsgFormat to be copied
 
- 
format
public MsgFormat format(java.lang.String sOut)
formatting operator.- Parameters:
 sOut- input value to be applied to the format
 
- 
getParm
public java.lang.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 java.lang.String sourceString()
Retrieve the source string- Returns:
 - the source string for this
 
 
- 
toString
public java.lang.String toString()
Conversion operator.- Overrides:
 toStringin classjava.lang.Object- Returns:
 - *this as a jfstring
 
 
 - 
 
 -