org.andromda.metafacades.emf.uml22.FrontEndPackageLogicImpl 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.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.andromda.metafacades.uml.FrontEndController;
import org.andromda.metafacades.uml.FrontEndUseCase;
import org.andromda.metafacades.uml.ModelElementFacade;
/**
* MetafacadeLogic implementation for
* org.andromda.metafacades.uml.FrontEndPackage.
*
* @see org.andromda.metafacades.uml.FrontEndPackage
*/
public class FrontEndPackageLogicImpl
extends FrontEndPackageLogic
{
private static final long serialVersionUID = 34L;
/**
* @param metaObject
* @param context
*/
public FrontEndPackageLogicImpl(
final Object metaObject,
final String context)
{
super(metaObject, context);
}
/**
* @see org.andromda.metafacades.uml.FrontEndPackage#getFrontEndUseCases()
*/
@Override
protected List handleGetFrontEndUseCases()
{
final List useCases = new ArrayList();
final Collection ownedElements = this.getOwnedElements();
for (final Iterator elementIterator = ownedElements.iterator(); elementIterator.hasNext();)
{
final Object object = elementIterator.next();
if (object instanceof FrontEndUseCase)
{
useCases.add((FrontEndUseCase)object);
}
}
return useCases;
}
/**
* @see org.andromda.metafacades.uml.FrontEndPackage#getFrontEndControllers()
*/
@Override
protected List handleGetFrontEndControllers()
{
final List useCases = new ArrayList();
final Collection ownedElements = this.getOwnedElements();
for (final Iterator elementIterator = ownedElements.iterator(); elementIterator.hasNext();)
{
final Object object = elementIterator.next();
if (object instanceof FrontEndController)
{
useCases.add((FrontEndController)object);
}
}
return useCases;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy