Humboldt Alignment Editor 2.5.0

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

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.impl.DefaultSchemaSpace
All Implemented Interfaces:
SchemaSpace, TypeIndex

public class DefaultSchemaSpace
extends Object
implements SchemaSpace

Default SchemaSpace implementation

Author:
Simon Templer

Constructor Summary
DefaultSchemaSpace()
           
 
Method Summary
 DefaultSchemaSpace addSchema(Schema schema)
          Adds a schema
 Collection<? extends TypeDefinition> getMappingRelevantTypes()
          Get all mappable types, i.e.
 Iterable<? extends Schema> getSchemas()
          Get the contained schemas
 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

DefaultSchemaSpace

public DefaultSchemaSpace()
Method Detail

addSchema

public DefaultSchemaSpace addSchema(Schema schema)
Adds a schema

Parameters:
schema - the schema to add
Returns:
this schema space for chaining

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()
Description copied from interface: TypeIndex
Get all mappable types, i.e. types that are flagged with an enabled MappingRelevantFlag

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

getSchemas

public Iterable<? extends Schema> getSchemas()
Description copied from interface: SchemaSpace
Get the contained schemas

Specified by:
getSchemas in interface SchemaSpace
Returns:
the schemas
See Also:
SchemaSpace.getSchemas()

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