org.eclipse.m2m.atl.adt.ui.text.atl.types
Class ModuleType

java.lang.Object
  extended by org.eclipse.m2m.atl.adt.ui.text.atl.types.OclAnyType
      extended by org.eclipse.m2m.atl.adt.ui.text.atl.types.UnitType
          extended by org.eclipse.m2m.atl.adt.ui.text.atl.types.ModuleType

public class ModuleType
extends UnitType

The ATL Module type.


Field Summary
 
Fields inherited from class org.eclipse.m2m.atl.adt.ui.text.atl.types.UnitType
sourceManager
 
Fields inherited from class org.eclipse.m2m.atl.adt.ui.text.atl.types.OclAnyType
oclType
 
Constructor Summary
ModuleType(org.eclipse.core.resources.IFile file, AtlSourceManager manager)
          Creates a new module from the given source manager.
 
Method Summary
protected  java.util.Collection<org.eclipse.emf.ecore.EObject> getHelpersObjects()
          Returns the helpers atl objects.
 org.eclipse.emf.ecore.EObject getRule(java.lang.String ruleName)
          Returns the rule with the given name if present.
protected  java.util.List<Operation> getTypeOperations()
          Return the local type operations.
 
Methods inherited from class org.eclipse.m2m.atl.adt.ui.text.atl.types.UnitType
create, getAllAttributes, getAllHelpers, getAttributes, getFile, getHelpers, getSourceManager, getSupertypes, init
 
Methods inherited from class org.eclipse.m2m.atl.adt.ui.text.atl.types.OclAnyType
create, equals, getFeatures, getInstance, getOclType, getOperations, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleType

public ModuleType(org.eclipse.core.resources.IFile file,
                  AtlSourceManager manager)
Creates a new module from the given source manager.

Parameters:
file - the file containing the declaration
manager - the source manager
Method Detail

getTypeOperations

protected java.util.List<Operation> getTypeOperations()
Return the local type operations. Subclasses may override this method to add their own operation to the supertypes's ones.

Overrides:
getTypeOperations in class OclAnyType
Returns:
the operations
See Also:
OclAnyType.getTypeOperations()

getRule

public org.eclipse.emf.ecore.EObject getRule(java.lang.String ruleName)
Returns the rule with the given name if present.

Parameters:
ruleName - the rule name
Returns:
the rule with the given name if present

getHelpersObjects

protected java.util.Collection<org.eclipse.emf.ecore.EObject> getHelpersObjects()
Returns the helpers atl objects.

Specified by:
getHelpersObjects in class UnitType
Returns:
the helpers atl objects
See Also:
UnitType.getHelpersObjects()

Copyright 2007 IBM Corporation and others.
All Rights Reserved.