com.jgpruitt.datamodeler.core
Class ModelBuilder

java.lang.Object
  extended by com.jgpruitt.datamodeler.core.ModelBuilder

public class ModelBuilder
extends java.lang.Object

A Fluent Builder class for constructing Model objects.

Author:
John Pruitt
See Also:
Model

Field Summary
protected  Model model
           
 
Constructor Summary
ModelBuilder()
          Constructor
 
Method Summary
 Model done()
          Gets the Model that was constructed by the builder
 SchemaBuilder schema(java.lang.String name)
          Adds a Schema by the given name to the Model and returns a SchemaBuilder for the new Schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected final Model model
Constructor Detail

ModelBuilder

public ModelBuilder()
Constructor

Method Detail

done

public Model done()
Gets the Model that was constructed by the builder

Returns:
the Model

schema

public SchemaBuilder schema(java.lang.String name)
Adds a Schema by the given name to the Model and returns a SchemaBuilder for the new Schema.

Parameters:
name - the name of the new Schema
Returns:
the SchemaBuilder
See Also:
SchemaBuilder