Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.model.impl
Class TypeEntityDefinition

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.model.impl.TypeEntityDefinition
All Implemented Interfaces:
EntityDefinition

@Immutable
public class TypeEntityDefinition
extends Object
implements EntityDefinition

Entity definition for a type

Author:
Simon Templer

Constructor Summary
TypeEntityDefinition(TypeDefinition typeDefinition, SchemaSpaceID schemaSpace, Filter filter)
          Create an entity definition for the given type
 
Method Summary
 boolean equals(Object obj)
           
 TypeDefinition getDefinition()
          Get the definition of the type or property represented by the entity definition.
 Filter getFilter()
          Get the filter applied to the entity type.
 List<ChildContext> getPropertyPath()
          Get the property path.
 SchemaSpaceID getSchemaSpace()
          Get the schema space the entity definition is associated to.
 TypeDefinition getType()
          Get the type definition that is associated with the entity.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeEntityDefinition

public TypeEntityDefinition(TypeDefinition typeDefinition,
                            SchemaSpaceID schemaSpace,
                            Filter filter)
Create an entity definition for the given type

Parameters:
typeDefinition - the type definition
schemaSpace - the schema space identifier
filter - the entity filter, may be null
Method Detail

getSchemaSpace

public SchemaSpaceID getSchemaSpace()
Description copied from interface: EntityDefinition
Get the schema space the entity definition is associated to. The schema space itself is no characteristic of the entity, but is needed as additional information to differentiate between source and target schema entities with the same names.

Specified by:
getSchemaSpace in interface EntityDefinition
Returns:
the identifier of the entity definition's schema space
See Also:
EntityDefinition.getSchemaSpace()

getDefinition

public TypeDefinition getDefinition()
Description copied from interface: EntityDefinition
Get the definition of the type or property represented by the entity definition.

Specified by:
getDefinition in interface EntityDefinition
Returns:
the definition of the type or property
See Also:
EntityDefinition.getDefinition()

getType

public TypeDefinition getType()
Description copied from interface: EntityDefinition
Get the type definition that is associated with the entity. This is either the type represented by the entity or the topmost parent to the property represented by the entity.

Specified by:
getType in interface EntityDefinition
Returns:
the type definition
See Also:
EntityDefinition.getType()

getPropertyPath

public List<ChildContext> getPropertyPath()
Description copied from interface: EntityDefinition
Get the property path. Each path item is an instance context name paired with a child definition. The default instance context name is null.

Specified by:
getPropertyPath in interface EntityDefinition
Returns:
the path down to the property represented by the entity, an empty list if the entity represents a type
See Also:
EntityDefinition.getPropertyPath()

getFilter

public Filter getFilter()
Description copied from interface: EntityDefinition
Get the filter applied to the entity type.

Specified by:
getFilter in interface EntityDefinition
Returns:
the entity filter, may be null
See Also:
EntityDefinition.getFilter()

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Overrides:
toString in class Object

Humboldt Alignment Editor 2.5.0

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