|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class is the column structure of the XAT. It's a table of XML fragments.
Method Summary | |
int |
appendColumn(java.lang.String sColumnName)
Append an empty column to the end of the table. |
int |
appendColumn(java.lang.String sColumnName,
java.util.Vector new_column)
Append a new column to the end of the table. |
java.util.Vector |
deleteColumn(int position)
Delete a column in the specific position. |
java.util.Vector |
getColList()
Get the vector containing the columns themselves. |
java.util.Vector |
getColNames()
Get the vector containing the column names. |
java.util.Vector |
getColumn(int position)
Get a column back by position. |
java.lang.String |
getColumnName(int position)
Get the column name for a specific column position. |
int |
getColumnPosition(java.lang.String column_name)
Get the Column Position from the Column Name. |
int |
getNumberOfColumns()
Get total number of columns in this table. |
int |
insertColumn(int position,
java.lang.String sColumnName,
java.util.Vector new_column)
Insert a new column to the table before specific position. |
java.util.Vector |
mergeColumnNames(XATTable tab2)
This method takes two XATTables (this and tab2). |
void |
moveColumn(int from_position,
int to_position)
Move a column to a specific position. |
java.util.Vector |
updateColumn(int position,
java.util.Vector new_column)
Update the column in given position as new column. |
Method Detail |
public int appendColumn(java.lang.String sColumnName) throws XATTableTupleNoMatchException
new_column
- The new column append will be appended.public int appendColumn(java.lang.String sColumnName, java.util.Vector new_column) throws XATTableTupleNoMatchException
new_column
- The new columns.public java.util.Vector deleteColumn(int position) throws XATTableOutOfRangeException, XATTableEmptyException
position
- The position of the column will be deleted.public java.util.Vector getColList()
public java.util.Vector getColNames()
public java.util.Vector getColumn(int position) throws XATTableOutOfRangeException
position
- The position of the column which starts from 1.public java.lang.String getColumnName(int position) throws XATTableOutOfRangeException
position
- The column position searching for.public int getColumnPosition(java.lang.String column_name) throws XATTableColumnNoExistException
column_name
- The column name.public int getNumberOfColumns()
public int insertColumn(int position, java.lang.String sColumnName, java.util.Vector new_column) throws XATTableOutOfRangeException, XATTableTupleNoMatchException
position
- The column position.sColumnName
- The new column name.new_column
- The new column content.public java.util.Vector mergeColumnNames(XATTable tab2)
tab2
- The XATTable merged to.public void moveColumn(int from_position, int to_position) throws XATTableOutOfRangeException, XATTableEmptyException
from_position
- The position of the column which is going to moved.to_position
- The position of the column will be moved to.public java.util.Vector updateColumn(int position, java.util.Vector new_column) throws XATTableOutOfRangeException, XATTableEmptyException, XATTableTupleNoMatchException
position
- The position of the column will be updated.new_column
- The new column.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |