Package org.rcsb.cif.model.text
Class TextColumn
java.lang.Object
org.rcsb.cif.model.text.TextColumn
public class TextColumn extends Object implements StrColumn
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description TextColumn(String name, int rowCount, String textData, int[] startToken, int[] endToken) -
Method Summary
Modifier and Type Method Description Stringget(int row)Type-safe access to the native type of data stored in this column.String[]getArray()Explicitly creates this array by parsing all data in this text column.StringgetColumnName()The name of thisColumn.intgetRowCount()The number of rows in thisColumn.StringgetStringData(int row)Access to entries of thisColumnwithout any assumptions about the content type.ValueKindgetValueKind(int row)States theValueKindfor a particular row.
-
Constructor Details
-
Method Details
-
getColumnName
Description copied from interface:ColumnThe name of thisColumn.- Specified by:
getColumnNamein interfaceColumn<String[]>- Returns:
- the
Stringwhich is used to acquire this column from its parentCategory
-
getRowCount
public int getRowCount()Description copied from interface:Column- Specified by:
getRowCountin interfaceColumn<String[]>- Returns:
- the length of this
Column
-
getStringData
Description copied from interface:ColumnAccess to entries of thisColumnwithout any assumptions about the content type. No checks about the validity of the row argument are made. Values smaller than 0 or larger or equal to the row count will raise exceptions.- Specified by:
getStringDatain interfaceColumn<String[]>- Parameters:
row- index of the element to retrieve- Returns:
- the
Stringrepresentation of the corresponding row
-
getValueKind
Description copied from interface:ColumnStates theValueKindfor a particular row. Elements may either be 'present', 'not_specified' (.) or 'unknown' (?).- Specified by:
getValueKindin interfaceColumn<String[]>- Parameters:
row- index of the element for which theValueKindshould be retrieved- Returns:
- the corresponding
ValueKindenum entry
-
getArray
Explicitly creates this array by parsing all data in this text column. Don't use this function on for text data - returned array is not cached -
get
Description copied from interface:StrColumnType-safe access to the native type of data stored in this column.
-