org.eclipse.xtend.typesystem
Interface MetaModel

All Known Implementing Classes:
BuiltinMetaModel, EmfMetaModel, EmfRegistryMetaModel, JavaBeansMetaModel, JavaMetaModel, JdtMetaModel, ProfileMetaModel, UML2MetaModel, UML2MetaModelBase, XpandTypesMetaModel, XSDMetaModel, XtendMetaModel

public interface MetaModel

Author:
Sven Efftinge (http://www.efftinge.de), Arno Haase, Peter Friese

Method Summary
 java.util.Set<? extends Type> getKnownTypes()
          returns all types this metamodel is responsible for
 java.util.Set<java.lang.String> getNamespaces()
          Returns all namespaces provided by this metamodel.
 Type getType(java.lang.Object obj)
          if this metamodel is responsible for a types which are responsible for the given object, it returns the corresponding type.
 Type getTypeForName(java.lang.String typeName)
          if this metamodel is responsible for a type with the given name, it returns the corresponding type.
 TypeSystem getTypeSystem()
          Returns the underlying typesystem.
 void setTypeSystem(TypeSystem typeSystem)
          Sets the underlying typesystem.
 

Method Detail

getTypeSystem

TypeSystem getTypeSystem()
Returns the underlying typesystem.

Returns:
the typesystem

setTypeSystem

void setTypeSystem(TypeSystem typeSystem)
Sets the underlying typesystem.

Parameters:
typeSystem - the typesystem

getTypeForName

Type getTypeForName(java.lang.String typeName)
if this metamodel is responsible for a type with the given name, it returns the corresponding type. Otherwise returns null

Parameters:
typeName - name of type
Returns:
the corresponding type

getType

Type getType(java.lang.Object obj)
if this metamodel is responsible for a types which are responsible for the given object, it returns the corresponding type. Otherwise returns null

Parameters:
obj - object for which a corresponding object is requested
Returns:
the corresponding type

getKnownTypes

java.util.Set<? extends Type> getKnownTypes()
returns all types this metamodel is responsible for

Returns:
set of known types

getNamespaces

java.util.Set<java.lang.String> getNamespaces()
Returns all namespaces provided by this metamodel.

Returns:
A Set containing the names of all namespaces provided by this metamodel.