public class MCtableItem extends MCcontentItem
Shall consist of a single Item whose Attributes convey the cell value(s), which represent rows and columns consisting of text, codes, integers, real numbers or DateTimes.
Modifier and Type | Class and Description |
---|---|
static class |
MCtableItem.CellValues
The values of each populated cell in the table, identified by row and column.
|
static class |
MCtableItem.TableColumnDefinition
The concepts that define the meaning of the columns of the table.
|
static class |
MCtableItem.TableRowDefinition
The concepts that define the meaning of the rows of the table.
|
Constructor and Description |
---|
MCtableItem()
Default constructor
|
MCtableItem(int rows,
int columns,
java.util.List<MCtableItem.TableRowDefinition> rowDefs,
java.util.List<MCtableItem.TableColumnDefinition> columnDefs,
java.util.List<MCtableItem.CellValues> cellVals,
MCbasicCodedEntry conceptName)
Create a new instance of the TABLE Content Item
|
Modifier and Type | Method and Description |
---|---|
MCcontentItemType |
contentItemType()
Get the value type of this content item.
|
java.util.List<MCtableItem.CellValues> |
getCellValues()
Get the list of the values of each populated cell in the table, identified by row and column.
|
java.util.List<MCtableItem.TableColumnDefinition> |
getTableColumnDefinitions()
Get the list of the concepts that define the meaning of the columns of the table.
|
int |
getTableColumns()
Get the number of columns in this table.
|
java.util.List<MCtableItem.TableRowDefinition> |
getTableRowDefinitions()
Get the list of the concepts that define the meaning of the rows of the table.
|
int |
getTableRows()
Get the number of rows in this table.
|
void |
read(MCattributeSet source)
Read the TABLE content item from an attribute set
|
void |
setCellValues(java.util.List<MCtableItem.CellValues> cellVals)
Set the list of the values of each populated cell in the table, identified by row and column.
|
void |
setTableColumnDefinitions(java.util.List<MCtableItem.TableColumnDefinition> colDefs)
Set the list of the concepts that define the meaning of the columns of the table.
|
void |
setTableColumns(int cols)
Set the number of columns in this table.
|
void |
setTableRowDefinitions(java.util.List<MCtableItem.TableRowDefinition> rowDefs)
Set the list of the concepts that define the meaning of the rows of the table.
|
void |
setTableRows(int rows)
Get the number of rows in this table.
|
void |
write(MCattributeSet destination)
Write the TABLE content item to an attribute set
|
addChild, addChildAt, addReference, getChildAt, getChildren, getConceptName, getDataContext, getItemId, getObservationDateTime, getObservationUID, getParent, getPosition, getReferences, getRelationshipType, getRootItem, removeChild, removeChildAt, removeReference, removeReference, setConceptName, setDataContext, setObservationDataTime, setObservationUID, setRelationshipType
public MCtableItem()
public MCtableItem(int rows, int columns, java.util.List<MCtableItem.TableRowDefinition> rowDefs, java.util.List<MCtableItem.TableColumnDefinition> columnDefs, java.util.List<MCtableItem.CellValues> cellVals, MCbasicCodedEntry conceptName)
rows
- The number of rows in this tablecolumns
- The number of columns in this tablerowDefs
- The concepts that define the meaning of the rows of the tablecolumnDefs
- The concepts that define the meaning of the columns of the tablecellVals
- The values of each populated cell in the table, identified by row and columnconceptName
- Code describing the concept represented by this Content Itempublic MCcontentItemType contentItemType()
contentItemType
in class MCcontentItem
MCcontentItemType.NUM
public int getTableRows()
public void setTableRows(int rows)
rows
- The number of rowspublic int getTableColumns()
public void setTableColumns(int cols)
cols
- The number of columnspublic java.util.List<MCtableItem.TableRowDefinition> getTableRowDefinitions()
One or more Items are permitted in this Sequence.
If a single Item is present, then the concept applies to all the rows.
Not all rows need to be described.
Items of this Sequence shall be sorted by Table Row Number.
public void setTableRowDefinitions(java.util.List<MCtableItem.TableRowDefinition> rowDefs)
One or more Items are permitted in this Sequence.
If a single Item is present, then the concept applies to all the rows.
Not all rows need to be described.
Items of this Sequence shall be sorted by Table Row Number.
rowDefs
- The row definitionspublic java.util.List<MCtableItem.TableColumnDefinition> getTableColumnDefinitions()
One or more Items are permitted in this Sequence.
If a single Item is present, then the concept applies to all the columns.
Not all columns need to be described.
Items of this Sequence shall be sorted by Table Column Number.
public void setTableColumnDefinitions(java.util.List<MCtableItem.TableColumnDefinition> colDefs)
One or more Items are permitted in this Sequence.
If a single Item is present, then the concept applies to all the columns.
Not all columns need to be described.
Items of this Sequence shall be sorted by Table Column Number.
colDefs
- The column definitionspublic java.util.List<MCtableItem.CellValues> getCellValues()
One or more Items shall be included in this Sequence.
The table may be sparse (i.e., not every cell is required to be populated).
Entire rows may be specified in a single Item if all the columns have the same VR.
Entire columns may be specified in a single Item if all the rows have the same VR.
Items of this Sequence shall be in row-major order, then sorted by column.
public void setCellValues(java.util.List<MCtableItem.CellValues> cellVals)
One or more Items shall be included in this Sequence.
The table may be sparse (i.e., not every cell is required to be populated).
Entire rows may be specified in a single Item if all the columns have the same VR.
Entire columns may be specified in a single Item if all the rows have the same VR.
Items of this Sequence shall be in row-major order, then sorted by column.
cellVals
- The list of valuespublic void read(MCattributeSet source)
read
in interface MCdataSetSerializable
read
in class MCcontentItem
source
- The source attribute set.MCexception
- If the source parameter is null.public void write(MCattributeSet destination)
write
in interface MCdataSetSerializable
write
in class MCcontentItem
destination
- The destination attribute set.MCexception
- If the destination parameter is null or
is NOT an MCitem
object.