org.andromda.metafacades.emf.uml22.ValueObjectLogicImpl 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 java.util.TreeSet;
import org.andromda.metafacades.uml.GeneralizableElementFacade;
import org.andromda.metafacades.uml.StereotypeFacade;
/**
* MetafacadeLogic implementation for org.andromda.metafacades.uml.ValueObject.
*
* @see org.andromda.metafacades.uml.ValueObject
*/
public class ValueObjectLogicImpl
extends ValueObjectLogic
{
private static final long serialVersionUID = 34L;
/**
* @param metaObject
* @param context
*/
public ValueObjectLogicImpl(
final Object metaObject,
final String context)
{
super(metaObject, context);
}
/**
* Used by XmlSeeAlso to reference immediate descendants of this VO class
* @return specializations
* @see org.andromda.metafacades.uml.ValueObject#getTypeSpecializations()
*/
@Override
protected Collection handleGetTypeSpecializations()
{
final StringBuilder stereotypes = new StringBuilder();
for (StereotypeFacade stereotype : this.getStereotypes())
{
stereotypes.append(stereotype.getName()).append(',');
}
return this.handleGetTypeSpecializations(stereotypes.toString());
}
/**
* @param stereotypes
* @return specializations
*/
protected Collection handleGetTypeSpecializations(final String stereotypes)
{
final Collection specializations = new TreeSet();
final String[] stereotypeList = stereotypes.split(",", -1);
for (GeneralizableElementFacade classifier : this.getAllSpecializations())
{
if (classifier instanceof ValueObjectLogic)
{
for (int i=0; i
© 2015 - 2024 Weber Informatics LLC | Privacy Policy