Package org.rcsb.cif
Class CifBuilder
java.lang.Object
org.rcsb.cif.CifBuilder
public class CifBuilder extends Object
The entry point to create
CifFile instances programmatically.-
Constructor Summary
Constructors Constructor Description CifBuilder() -
Method Summary
Modifier and Type Method Description static CifFileBuilderenterFile()Start a new file without providing any schema.static <F extends CifFile, B extends CifFileBuilder>
BenterFile(SchemaProvider<F,B> schemaProvider)Start a new file with a specified schema.
-
Constructor Details
-
CifBuilder
public CifBuilder()
-
-
Method Details
-
enterFile
Start a new file without providing any schema.- Returns:
- a generic builder instance
-
enterFile
public static <F extends CifFile, B extends CifFileBuilder> B enterFile(SchemaProvider<F,B> schemaProvider)Start a new file with a specified schema.- Type Parameters:
F- the type of the file being createdB- the type of the builder being used- Parameters:
schemaProvider- a provider of the desired schema - seeStandardSchemata- Returns:
- a schema-aware builder instance
-