public class DefaultFormatToString extends java.lang.Object implements FormatToStringIF
FormatToStringIF.FormatType
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
formatString |
protected FormatToStringIF.FormatType |
type |
Constructor and Description |
---|
DefaultFormatToString() |
DefaultFormatToString(FormatToStringIF.FormatType type,
java.lang.String formatString)
Construtor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormatString()
Get the format string.
|
FormatToStringIF.FormatType |
getType()
Get the type of format.
|
void |
setFormatString(FormatToStringIF.FormatType type,
java.lang.String formatString)
Set the format string.
|
java.lang.String[] |
ts_UnionSeqToString(ApplicationStructure asObj,
T_LONGLONG aid,
NameValueSeqUnitId nvu,
java.lang.String unit)
Get the formatted string of a name value unit sequence.
|
java.lang.String |
ts_UnionToString(ApplicationStructure asObj,
T_LONGLONG aid,
NameValueUnitId nvu,
java.lang.String unit)
Get the formatted string of a naqme value unit.
|
protected FormatToStringIF.FormatType type
protected java.lang.String formatString
public DefaultFormatToString()
public DefaultFormatToString(FormatToStringIF.FormatType type, java.lang.String formatString)
type
- the type of the format string.formatString
- the format string.public FormatToStringIF.FormatType getType()
getType
in interface FormatToStringIF
public java.lang.String getFormatString()
getFormatString
in interface FormatToStringIF
public void setFormatString(FormatToStringIF.FormatType type, java.lang.String formatString)
setFormatString
in interface FormatToStringIF
type
- the type of the format string.formatString
- the format string.public java.lang.String ts_UnionToString(ApplicationStructure asObj, T_LONGLONG aid, NameValueUnitId nvu, java.lang.String unit) throws java.lang.Exception
ts_UnionToString
in interface FormatToStringIF
asObj
- The application structure.aid
- the applicatino element id.nvu
- the name value unitjava.lang.Exception
public java.lang.String[] ts_UnionSeqToString(ApplicationStructure asObj, T_LONGLONG aid, NameValueSeqUnitId nvu, java.lang.String unit) throws java.lang.Exception
ts_UnionSeqToString
in interface FormatToStringIF
asObj
- The application structure.aid
- the applicatino element id.nvu
- the name value unitjava.lang.Exception