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 Details

  • Method Details

    • enterFile

      public static CifFileBuilder 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 created
      B - the type of the builder being used
      Parameters:
      schemaProvider - a provider of the desired schema - see StandardSchemata
      Returns:
      a schema-aware builder instance