Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model.impl
Class DefaultTypeIndex

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.impl.DefaultTypeIndex
All Implemented Interfaces:
TypeIndex
Direct Known Subclasses:
DefaultSchema

public class DefaultTypeIndex
extends Object
implements TypeIndex

Default TypeIndex implementation

Author:
Simon Templer

Constructor Summary
DefaultTypeIndex()
           
 
Method Summary
 void addType(TypeDefinition type)
          Add a type to the type index.
 Collection<? extends TypeDefinition> getMappingRelevantTypes()
          Get all mappable types, i.e.
 TypeDefinition getType(QName name)
          Get the type with the given name
 Collection<? extends TypeDefinition> getTypes()
          Get all types in the index
 void toggleMappingRelevant(Collection<? extends TypeDefinition> types)
          Toggles the mappable flag of the given types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTypeIndex

public DefaultTypeIndex()
Method Detail

addType

public void addType(TypeDefinition type)
Add a type to the type index.

Parameters:
type - the type to add

getTypes

public Collection<? extends TypeDefinition> getTypes()
Description copied from interface: TypeIndex
Get all types in the index

Specified by:
getTypes in interface TypeIndex
Returns:
all type definitions
See Also:
TypeIndex.getTypes()

getType

public TypeDefinition getType(QName name)
Description copied from interface: TypeIndex
Get the type with the given name

Specified by:
getType in interface TypeIndex
Parameters:
name - the type name
Returns:
the type definition or null if no type with the given name exists in the index
See Also:
TypeIndex.getType(QName)

getMappingRelevantTypes

public Collection<? extends TypeDefinition> getMappingRelevantTypes()
Get all mappable types, i.e. types that are flagged with an enabled MappingRelevantFlag
This method may not be called during model creation.

Specified by:
getMappingRelevantTypes in interface TypeIndex
Returns:
the mappable types
See Also:
TypeIndex.getMappingRelevantTypes()

toggleMappingRelevant

public void toggleMappingRelevant(Collection<? extends TypeDefinition> types)
Description copied from interface: TypeIndex
Toggles the mappable flag of the given types.

Specified by:
toggleMappingRelevant in interface TypeIndex
Parameters:
types - the types to toggle
See Also:
TypeIndex.toggleMappingRelevant(java.util.Collection)

Humboldt Alignment Editor 2.5.0

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