public class ResultColumn extends java.lang.Object implements ResultColumnInterface
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAXLEN |
protected static java.lang.String |
SPACES |
static java.lang.String |
version |
| Constructor and Description |
|---|
ResultColumn(java.lang.String name)
Create the result column
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String value)
Add a value to the column.
|
java.lang.String |
get(int i)
Get a value from column.
|
java.lang.String |
getName()
Get the name of the column
|
int[] |
getOrder()
Get the order index.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
void |
release()
Release the object.
|
int |
size()
Get the total number of column in result.
|
void |
sort(boolean ascent)
Sort the columns.
|
java.lang.String |
toString()
Get the string presentation of the column.
|
java.lang.String |
toString(boolean ordered,
boolean ascent)
Get the list output string in order.
|
public static final java.lang.String version
protected static final java.lang.String SPACES
protected static final int MAXLEN
public ResultColumn(java.lang.String name)
name - the name of the column.public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacepublic void release()
release in interface FwkInterfacepublic java.lang.String getName()
getName in interface ResultColumnInterfacepublic void add(java.lang.String value)
add in interface ResultColumnInterfacevalue - the new value.public java.lang.String get(int i)
get in interface ResultColumnInterfacepublic int size()
size in interface ResultColumnInterfacepublic int[] getOrder()
getOrder in interface ResultColumnInterfacepublic java.lang.String toString()
toString in interface ResultColumnInterfacetoString in class java.lang.Objectpublic void sort(boolean ascent)
sort in interface ResultColumnInterfaceascent - if true the columns will be sorted ascently.public java.lang.String toString(boolean ordered,
boolean ascent)
toString in interface ResultColumnInterfaceordered - if true the output will be sorted.ascent - if true the output will have ascent order.