Package org.rcsb.cif.model
Interface Column
-
- All Known Implementing Classes:
BaseColumn,FloatColumn,IntColumn,StrColumn
public interface ColumnRepresents a column of information in aCifFile, e.g. the coordinates in x-dimension of all atoms.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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.booleanisDefined()Queries this column whether it is defined.default Stream<String>stringData()Access to all entries of this column asStringvalues.Stream<ValueKind>valueKinds()
-
-
-
Method Detail
-
getColumnName
String getColumnName()
The name of thisColumn.- Returns:
- the
Stringwhich is used to acquire this column from its parentCategory
-
getRowCount
int getRowCount()
- Returns:
- the length of this
Column
-
getStringData
String getStringData(int row)
Access to entries of thisColumnwithout any assumptions about the content type. No checks about the validity of the row argument are made. However, values smaller than 0 or larger or equal to the row count will raise exceptions.- Parameters:
row- index of the element to retrieve- Returns:
- the
Stringrepresentation of the corresponding row
-
stringData
default Stream<String> stringData()
Access to all entries of this column asStringvalues.- Returns:
- a
Streamof allStringvalues
-
getValueKind
ValueKind getValueKind(int row)
States theValueKindfor a particular row. Elements may either be 'present', 'not_specified' (.) or 'unknown' (?).
-
valueKinds
Stream<ValueKind> valueKinds()
- Returns:
- a
Streamwith a number of ValueKinds equal to row count
-
isDefined
boolean isDefined()
Queries this column whether it is defined. To avoidNullPointerExceptionbeing thrown left, right, and center, categories and columns not present in a parsed file will be presented by an undefined state.- Returns:
falseif thisColumnhas row count 0 and no data in it
-
-