EVolve.data
Class EntityBuilder

java.lang.Object
  |
  +--EVolve.data.ElementBuilder
        |
        +--EVolve.data.EntityBuilder

public class EntityBuilder
extends ElementBuilder

Entity builder.


Field Summary
 
Fields inherited from class EVolve.data.ElementBuilder
elementType
 
Constructor Summary
EntityBuilder(java.lang.String entityName, java.lang.String entityDescription)
          Creates an entity builder.
 
Method Summary
 void addComparator(EntityComparator entityComparator)
           
 EntityDefinition buildDefinition()
          Builds the element definition.
 Entity buildEntity()
          Builds the entity.
 void newEntity(java.lang.String entityName)
          Starts building new entity.
 
Methods inherited from class EVolve.data.ElementBuilder
addReferenceField, addValueField, buildEntityDefinition, buildEvent, buildEventDefinition, buildReferenceDefinition, buildValueDefinition, init, newEvent, newEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityBuilder

public EntityBuilder(java.lang.String entityName,
                     java.lang.String entityDescription)
Creates an entity builder.

Parameters:
entityName - name of the entities
entityDescription - description of the entities
Method Detail

buildDefinition

public EntityDefinition buildDefinition()
Builds the element definition.

Returns:
the element definition

newEntity

public void newEntity(java.lang.String entityName)
Starts building new entity.

Overrides:
newEntity in class ElementBuilder
Parameters:
entityName - name of the entity

buildEntity

public Entity buildEntity()
Builds the entity.

Overrides:
buildEntity in class ElementBuilder
Returns:
the entity

addComparator

public void addComparator(EntityComparator entityComparator)