org.modeldriven.fuml.repository.model.Enumeration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fuml Show documentation
Show all versions of fuml Show documentation
This open source software is a reference implementation, consisting of software and related files, for the OMG specification called the Semantics of a Foundational Subset for Executable UML Models (fUML). The reference implementation is intended to implement the execution semantics of UML activity models, accepting an XMI file from a conformant UML model as its input and providing an execution trace of the selected activity model(s) as its output. The core execution engine, which is directly generated from the normative syntactic and semantic models for fUML, may also be used as a library implementation of fUML in other software.
package org.modeldriven.fuml.repository.model;
import java.util.ArrayList;
import java.util.List;
import org.modeldriven.fuml.repository.EnumerationLiteral;
import org.modeldriven.fuml.repository.RepositoryArtifact;
public class Enumeration extends DataType
implements org.modeldriven.fuml.repository.Enumeration {
private fUML.Syntax.Classes.Kernel.Enumeration enumeration;
public Enumeration(fUML.Syntax.Classes.Kernel.Enumeration enumeration,
RepositoryArtifact artifact) {
super(enumeration, artifact);
this.enumeration = enumeration;
}
public fUML.Syntax.Classes.Kernel.Enumeration getDelegate() {
return this.enumeration;
}
public List getOwnedLiteral() {
List result = new ArrayList();
for (fUML.Syntax.Classes.Kernel.EnumerationLiteral literal : this.enumeration.ownedLiteral) {
result.add(new org.modeldriven.fuml.repository.model.EnumerationLiteral(literal, this.getArtifact()));
}
return result;
}
}