Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.gml.writer.internal
Class SchemaDecorator

java.lang.Object
  extended by eu.esdihumboldt.hale.io.gml.writer.internal.SchemaDecorator
All Implemented Interfaces:
Locatable, Schema, TypeIndex

public abstract class SchemaDecorator
extends Object
implements Schema

Schema decorator.

Author:
Simon Templer

Constructor Summary
SchemaDecorator(Schema schema)
          Create a schema decorator.
 
Method Summary
 URI getLocation()
          Get the location
 Collection<? extends TypeDefinition> getMappingRelevantTypes()
          Get all mappable types, i.e.
 String getNamespace()
          Get the schema namespace
 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

SchemaDecorator

public SchemaDecorator(Schema schema)
Create a schema decorator.

Parameters:
schema - the decoratee
Method Detail

getLocation

public URI getLocation()
Description copied from interface: Locatable
Get the location

Specified by:
getLocation in interface Locatable
Returns:
the location, may be null

getNamespace

public String getNamespace()
Description copied from interface: Schema
Get the schema namespace

Specified by:
getNamespace in interface Schema
Returns:
the namespace

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

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

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

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

Humboldt Alignment Editor 2.5.0

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