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()
FwkInterface
getVersion
in interface FwkInterface
public void release()
release
in interface FwkInterface
public java.lang.String getName()
getName
in interface ResultColumnInterface
public void add(java.lang.String value)
add
in interface ResultColumnInterface
value
- the new value.public java.lang.String get(int i)
get
in interface ResultColumnInterface
public int size()
size
in interface ResultColumnInterface
public int[] getOrder()
getOrder
in interface ResultColumnInterface
public java.lang.String toString()
toString
in interface ResultColumnInterface
toString
in class java.lang.Object
public void sort(boolean ascent)
sort
in interface ResultColumnInterface
ascent
- if true the columns will be sorted ascently.public java.lang.String toString(boolean ordered, boolean ascent)
toString
in interface ResultColumnInterface
ordered
- if true the output will be sorted.ascent
- if true the output will have ascent order.