net.sourceforge.nrl.parser.type
Interface ITypeMapping

All Known Implementing Classes:
TypeMapping, XmlTypeMapping

public interface ITypeMapping

A mapping from model elements to types. This is used for resolving model references to internal types from the NRLDataType class.

Author:
Christian Nentwich

Method Summary
 NRLDataType getType(IAttribute attr)
          Map the type of an attribute to an internal abstract type.
 NRLDataType getType(IModelElement element)
          Map a model element to an internal, abstract type.
 

Method Detail

getType

NRLDataType getType(IAttribute attr)
Map the type of an attribute to an internal abstract type.

Parameters:
attr - the attribute
Returns:
an NRL type

getType

NRLDataType getType(IModelElement element)
Map a model element to an internal, abstract type. If the element is a classifier and not otherwise mapped, it maps to NRLDataType.ELEMENT.

Parameters:
element - the element
Returns:
an NRL type


Copyright © 2006-2013. All Rights Reserved.