Package org.rcsb.cif.model
Class BaseColumn
- java.lang.Object
-
- org.rcsb.cif.model.BaseColumn
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetBinaryStringData(int row)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.Stream<ValueKind>valueKinds()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rcsb.cif.model.Column
stringData
-
-
-
-
Method Detail
-
getStringData
public String getStringData(int row)
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. However, values smaller than 0 or larger or equal to the row count will raise exceptions.- Specified by:
getStringDatain interfaceColumn- Parameters:
row- index of the element to retrieve- Returns:
- the
Stringrepresentation of the corresponding row
-
getBinaryStringData
protected abstract String getBinaryStringData(int row)
-
getColumnName
public String getColumnName()
Description copied from interface:ColumnThe name of thisColumn.- Specified by:
getColumnNamein interfaceColumn- 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- Returns:
- the length of this
Column
-
getValueKind
public ValueKind getValueKind(int row)
Description copied from interface:ColumnStates theValueKindfor a particular row. Elements may either be 'present', 'not_specified' (.) or 'unknown' (?).- Specified by:
getValueKindin interfaceColumn- Parameters:
row- index of the element for which theValueKindshould be retrieved- Returns:
- the corresponding
ValueKindenum entry
-
valueKinds
public Stream<ValueKind> valueKinds()
Description copied from interface:Column- Specified by:
valueKindsin interfaceColumn- Returns:
- a
Streamwith a number of ValueKinds equal to row count
-
isDefined
public boolean isDefined()
Description copied from interface:ColumnQueries 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.
-
-