Generation Framework

org.eclipse.gmf.codegen.gmfgen
Interface TypeModelFacet

All Superinterfaces:
EObject, ModelFacet, Notifier
All Known Subinterfaces:
TypeLinkModelFacet
All Known Implementing Classes:
TypeLinkModelFacetImpl, TypeModelFacetImpl

public interface TypeModelFacet
extends ModelFacet

A representation of the model object 'Type Model Facet'. Model facet of an EClass

The following features are supported:

See Also:
GMFGenPackage.getTypeModelFacet()
** Generated **
Model:

Method Summary
 GenFeature getChildMetaFeature()
          Returns the value of the 'Child Meta Feature' reference
 GenFeature getContainmentMetaFeature()
          Returns the value of the 'Containment Meta Feature' reference
 GenClass getMetaClass()
          Returns the value of the 'Meta Class' reference
 GenElementInitializer getModelElementInitializer()
          Returns the value of the 'Model Element Initializer' containment reference.
 GenConstraint getModelElementSelector()
          Returns the value of the 'Model Element Selector' containment reference
 boolean isPhantomElement()
           
 void setChildMetaFeature(GenFeature value)
          Sets the value of the 'Child Meta Feature' reference
 void setContainmentMetaFeature(GenFeature value)
          Sets the value of the 'Containment Meta Feature' reference
 void setMetaClass(GenClass value)
          Sets the value of the 'Meta Class' reference
 void setModelElementInitializer(GenElementInitializer value)
          Sets the value of the 'Model Element Initializer' containment reference
 void setModelElementSelector(GenConstraint value)
          Sets the value of the 'Model Element Selector' containment reference
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getMetaClass

public GenClass getMetaClass()
Returns the value of the 'Meta Class' reference.

If the meaning of the 'Meta Class' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Meta Class' reference.
See Also:
TypeModelFacet.setMetaClass(GenClass), GMFGenPackage.getTypeModelFacet_MetaClass()
** Generated **
Model:
required="true"

setMetaClass

public void setMetaClass(GenClass value)
Sets the value of the 'Meta Class' reference.

Parameters:
value - the new value of the 'Meta Class' reference.
See Also:
TypeModelFacet.getMetaClass()
** Generated **

getContainmentMetaFeature

public GenFeature getContainmentMetaFeature()
Returns the value of the 'Containment Meta Feature' reference.

If the meaning of the 'Containment Meta Feature' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Containment Meta Feature' reference.
See Also:
TypeModelFacet.setContainmentMetaFeature(GenFeature), GMFGenPackage.getTypeModelFacet_ContainmentMetaFeature()
** Generated **
Model:
annotation="http://www.eclipse.org/gmf/2005/constraints ocl='let r: ecore::EReference=containmentMetaFeature.ecoreFeature.oclAsType(ecore::EReference) in not containmentMetaFeature.oclIsUndefined() implies r.containment or r.eReferenceType.isSuperTypeOf(metaClass.ecoreClass)' description='\'Containment Meta Feature\' must reference \'Meta Class\' or its super-classes'"

setContainmentMetaFeature

public void setContainmentMetaFeature(GenFeature value)
Sets the value of the 'Containment Meta Feature' reference.

Parameters:
value - the new value of the 'Containment Meta Feature' reference.
See Also:
TypeModelFacet.getContainmentMetaFeature()
** Generated **

getChildMetaFeature

public GenFeature getChildMetaFeature()
Returns the value of the 'Child Meta Feature' reference. Usually the same as containmentMetaFeature, unless you need to distinguish where to put and where to get from

Returns:
the value of the 'Child Meta Feature' reference.
See Also:
TypeModelFacet.setChildMetaFeature(GenFeature), GMFGenPackage.getTypeModelFacet_ChildMetaFeature()
** Generated **
Model:
annotation="http://www.eclipse.org/gmf/2005/constraints ocl='not childMetaFeature.oclIsUndefined() implies childMetaFeature.ecoreFeature.oclAsType(ecore::EReference).eReferenceType.isSuperTypeOf(metaClass.ecoreClass)' description='\'Child Meta Feature\' must reference \'Meta Class\' or its sub-classes'"

setChildMetaFeature

public void setChildMetaFeature(GenFeature value)
Sets the value of the 'Child Meta Feature' reference.

Parameters:
value - the new value of the 'Child Meta Feature' reference.
See Also:
TypeModelFacet.getChildMetaFeature()
** Generated **

getModelElementSelector

public GenConstraint getModelElementSelector()
Returns the value of the 'Model Element Selector' containment reference. Selection criterion for domain model elements associated with this type model facet

Returns:
the value of the 'Model Element Selector' containment reference.
See Also:
TypeModelFacet.setModelElementSelector(GenConstraint), GMFGenPackage.getTypeModelFacet_ModelElementSelector()
** Generated **
Model:
containment="true" annotation="http://www.eclipse.org/gmf/2005/constraints/meta def='context' ocl='metaClass.ecoreClass'"

setModelElementSelector

public void setModelElementSelector(GenConstraint value)
Sets the value of the 'Model Element Selector' containment reference.

Parameters:
value - the new value of the 'Model Element Selector' containment reference.
See Also:
TypeModelFacet.getModelElementSelector()
** Generated **

getModelElementInitializer

public GenElementInitializer getModelElementInitializer()
Returns the value of the 'Model Element Initializer' containment reference. It is bidirectional and its opposite is 'Type Model Facet'. State initializer for domain model elements associated with this type model facet

Returns:
the value of the 'Model Element Initializer' containment reference.
See Also:
TypeModelFacet.setModelElementInitializer(GenElementInitializer), GMFGenPackage.getTypeModelFacet_ModelElementInitializer(), GenElementInitializer.getTypeModelFacet()
** Generated **
Model:
opposite="typeModelFacet" containment="true"

setModelElementInitializer

public void setModelElementInitializer(GenElementInitializer value)
Sets the value of the 'Model Element Initializer' containment reference.

Parameters:
value - the new value of the 'Model Element Initializer' containment reference.
See Also:
TypeModelFacet.getModelElementInitializer()
** Generated **

isPhantomElement

public boolean isPhantomElement()

** Generated **
Model:
kind="operation"

Generation Framework

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.