Package org.rcsb.cif.model.builder
Class ColumnBuilder<P extends CategoryBuilder>
- java.lang.Object
-
- org.rcsb.cif.model.builder.ColumnBuilder<P>
-
- Type Parameters:
P- type of the parent builder, so that upon leaving the concrete instance can be provided (rather than a generic category builder)
- Direct Known Subclasses:
FloatColumnBuilder,IntColumnBuilder,StrColumnBuilder
public abstract class ColumnBuilder<P extends CategoryBuilder> extends Object
Shared functionality of column building instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Columnbuild()Build this instance, ignoring parent information.abstract PleaveColumn()Leave this column and return to the parent builder.abstract ColumnBuilder<P>markNextNotPresent()Values in CifFile instances can be present, not present (.), or unknown (?).abstract ColumnBuilder<P>markNextUnknown()Values in CifFile instances can be present, not present (.), or unknown (?).
-
-
-
Method Detail
-
markNextNotPresent
public abstract ColumnBuilder<P> markNextNotPresent()
Values in CifFile instances can be present, not present (.), or unknown (?). Stores an empty value in the value list and marks this row as not present.- Returns:
- this builder instance
-
markNextUnknown
public abstract ColumnBuilder<P> markNextUnknown()
Values in CifFile instances can be present, not present (.), or unknown (?). Stores an empty value in the value list and marks this row as unknown.- Returns:
- this builder instance
-
build
public abstract Column build()
Build this instance, ignoring parent information.- Returns:
- the Column
-
leaveColumn
public abstract P leaveColumn()
Leave this column and return to the parent builder.- Returns:
- the parent builder
-
-