Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.io.impl.internal
Class EntityBean<T extends EntityDefinition>

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.io.impl.internal.EntityBean<T>
Type Parameters:
T - the entity definition type
Direct Known Subclasses:
PropertyBean, TypeBean

public abstract class EntityBean<T extends EntityDefinition>
extends Object

Represents an Entity

Author:
Simon Templer

Constructor Summary
EntityBean()
          Default constructor
EntityBean(QName typeName, String filter)
          Create an entity bean with the given type name
 
Method Summary
abstract  Entity createEntity(TypeIndex types, SchemaSpaceID schemaSpace)
          Create the represented entity
protected abstract  T createEntityDefinition(TypeIndex index, SchemaSpaceID schemaSpace)
          Get the entity definition
 String getFilter()
          Get the type filter.
 QName getTypeName()
          Get the type name
 void setFilter(String filter)
          Set the type filter.
 void setTypeName(QName typeName)
          Set the type name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityBean

public EntityBean()
Default constructor


EntityBean

public EntityBean(QName typeName,
                  String filter)
Create an entity bean with the given type name

Parameters:
typeName - the type name
filter - the filter to the type entity
Method Detail

createEntityDefinition

protected abstract T createEntityDefinition(TypeIndex index,
                                            SchemaSpaceID schemaSpace)
Get the entity definition

Parameters:
index - the type index
schemaSpace - the associated schema space
Returns:
the entity definition

createEntity

public abstract Entity createEntity(TypeIndex types,
                                    SchemaSpaceID schemaSpace)
Create the represented entity

Parameters:
types - the type index
schemaSpace - the associated schema space
Returns:
the entity

getFilter

public String getFilter()
Get the type filter.

Returns:
the type filter

setFilter

public void setFilter(String filter)
Set the type filter.

Parameters:
filter - the type filter to set

getTypeName

public QName getTypeName()
Get the type name

Returns:
the type name

setTypeName

public void setTypeName(QName typeName)
Set the type name

Parameters:
typeName - the type name to set

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d