Package org.rcsb.cif.model
Interface Block
- All Known Implementing Classes:
BinaryBlock,CifCoreBlock,DelegatingBlock,MmCifBlock,TextBlock
public interface Block
-
Method Summary
Modifier and Type Method Description default Stream<Category>categories()Traverses all present categories.StringgetBlockHeader()The header of thisBlock.Map<String,Category>getCategories()Access to the category map wrapped by this block.CategorygetCategory(String name)Retrieve a particularCategoryby name.default <C extends Category>
CgetCategory(String name, Function<Category,C> wrapper)'Type-safe' access to arbitrary categories.default Column<?>getColumn(String name)Retrieve aColumnby name.List<Block>getSaveFrames()All save frames associated to thisBlock.default Stream<Block>saveFrames()Convenience method to traverse all save frames.
-
Method Details
-
getBlockHeader
String getBlockHeader()The header of thisBlock.- Returns:
Stringof the header
-
getCategory
Retrieve a particularCategoryby name. -
getColumn
Retrieve aColumnby name. This is relevant for CCDC files that identify columns by 'flat' names such as "cell_length_a" -
getCategories
Access to the category map wrapped by this block.- Returns:
- a map with category names as keys and instances as values
-
categories
Traverses all present categories.- Returns:
- a Stream of all
Categoryinstances
-
getSaveFrames
All save frames associated to thisBlock.- Returns:
- collection of save frames
-
saveFrames
Convenience method to traverse all save frames.- Returns:
- a
Streamof all save frames.
-
getCategory
'Type-safe' access to arbitrary categories.- Type Parameters:
C- the desired type- Parameters:
name- the category name to retrievewrapper- a mapping function that ensures that correct behavior of this category- Returns:
- typed instance of the requested category
-