org.andromda.metafacades.emf.uml22.PartitionFacadeLogicImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of andromda-metafacades-emf-uml22 Show documentation
Show all versions of andromda-metafacades-emf-uml22 Show documentation
The Eclipse EMF UML2 v2.X metafacades. This is the set of EMF UML2 2.X metafacades
implementations. These implement the common UML metafacades for .uml model files.
The newest version!
package org.andromda.metafacades.emf.uml22;
import java.util.Collection;
import org.eclipse.uml2.uml.Element;
import org.eclipse.uml2.uml.Region;
import org.eclipse.uml2.uml.StateMachine;
import org.eclipse.uml2.uml.Vertex;
/**
* MetafacadeLogic implementation for
* org.andromda.metafacades.uml.PartitionFacade.
*
* @see org.andromda.metafacades.uml.PartitionFacade
*/
public class PartitionFacadeLogicImpl
extends PartitionFacadeLogic
{
private static final long serialVersionUID = 34L;
/**
* @param metaObject
* @param context
*/
public PartitionFacadeLogicImpl(
final Region metaObject,
final String context)
{
super(metaObject, context);
}
/**
* @see org.andromda.metafacades.uml.PartitionFacade#getActivityGraph()
*/
@Override
protected StateMachine handleGetActivityGraph()
{
final Element owner = this.metaObject.getOwner();
if (owner instanceof StateMachine)
{
return (StateMachine)owner;
}
return null;
}
/**
* @see org.andromda.metafacades.uml.PartitionFacade#getVertices()
*/
@Override
protected Collection handleGetVertices()
{
return this.metaObject.getSubvertices();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy