public class MessageFormatter extends java.lang.Object implements FormatterIF
ImplementationIF| Constructor and Description |
|---|
MessageFormatter(XSDContextIF ctx,
Formatvalue messageFormat,
int maxRows)
Create the object.
|
MessageFormatter(XSDContextIF ctx,
java.lang.String messageFormat,
java.lang.String terminator,
int maxRows)
Create the object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the formatter.
|
java.util.Iterator<java.lang.String> |
format(ResultIF result)
Get the formatted string of the given result set structure.
|
java.lang.String |
getTerminator()
Get the terminator string.
|
public MessageFormatter(XSDContextIF ctx, Formatvalue messageFormat, int maxRows)
ctx - the context.messageFormat - the message format descriptor.maxRows - the maximum number of rows to be formatted.
if 0 the formatter will format all rows.public MessageFormatter(XSDContextIF ctx, java.lang.String messageFormat, java.lang.String terminator, int maxRows)
ctx - the context.messageFormat - the message format string.termintator - the terminator string.maxRows - the total number of rows.public void close()
close in interface FormatterIFpublic java.util.Iterator<java.lang.String> format(ResultIF result)
format in interface FormatterIFresult - the query result.public java.lang.String getTerminator()
getTerminator in interface FormatterIF