Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model
Interface TypeIndex

All Known Subinterfaces:
Schema, SchemaSpace
All Known Implementing Classes:
DefaultSchema, DefaultSchemaSpace, DefaultTypeIndex, SchemaDecorator, XmlIndex

public interface TypeIndex

A type index holds a set of type definitions and a corresponding name index.

Author:
Simon Templer

Method Summary
 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.
 

Method Detail

getTypes

Collection<? extends TypeDefinition> getTypes()
Get all types in the index

Returns:
all type definitions

getType

TypeDefinition getType(QName name)
Get the type with the given name

Parameters:
name - the type name
Returns:
the type definition or null if no type with the given name exists in the index

getMappingRelevantTypes

Collection<? extends TypeDefinition> getMappingRelevantTypes()
Get all mappable types, i.e. types that are flagged with an enabled MappingRelevantFlag

Returns:
the mappable types

toggleMappingRelevant

void toggleMappingRelevant(Collection<? extends TypeDefinition> types)
Toggles the mappable flag of the given types.

Parameters:
types - the types to toggle

Humboldt Alignment Editor 2.5.0

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