package org.eclipse.modisco.kdm.action; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.OneToMany; import javax.persistence.OrderColumn; import org.eclipse.emf.texo.test.TexoTestObjectConverter; import org.eclipse.emf.texo.test.TexoTestQNameConverter; import org.eclipse.modisco.kdm.code.AbstractCodeElement; import org.eclipse.persistence.annotations.Converter; import org.eclipse.persistence.annotations.Converters; /** * A representation of the model object '<em><b>ActionElement</b></em>'. <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Entity(name = "action_ActionElement") @Converters({ @Converter(converterClass = TexoTestObjectConverter.class, name = "TexoTestObjectConverter"), @Converter(converterClass = TexoTestQNameConverter.class, name = "TexoTestQNameConverter") }) public class ActionElement extends AbstractCodeElement { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Basic() private String kind = null; /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @OneToMany(cascade = { CascadeType.ALL }) private Set<AbstractCodeElement> codeElement = new HashSet<AbstractCodeElement>(); /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @OneToMany(cascade = { CascadeType.ALL }) @OrderColumn() private List<AbstractActionRelationship> actionRelation = new ArrayList<AbstractActionRelationship>(); /** * Returns the value of '<em><b>kind</b></em>' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @return the value of '<em><b>kind</b></em>' feature * @generated */ public String getKind() { return kind; } /** * Sets the '{@link ActionElement#getKind() <em>kind</em>}' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @param newKind * the new value of the '{@link ActionElement#getKind() kind}' feature. * @generated */ public void setKind(String newKind) { kind = newKind; } /** * Returns the value of '<em><b>codeElement</b></em>' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @return the value of '<em><b>codeElement</b></em>' feature * @generated */ public Set<AbstractCodeElement> getCodeElement() { return codeElement; } /** * Sets the '{@link ActionElement#getCodeElement() <em>codeElement</em>}' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @param newCodeElement * the new value of the '{@link ActionElement#getCodeElement() codeElement}' feature. * @generated */ public void setCodeElement(Set<AbstractCodeElement> newCodeElement) { codeElement = newCodeElement; } /** * Returns the value of '<em><b>actionRelation</b></em>' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @return the value of '<em><b>actionRelation</b></em>' feature * @generated */ public List<AbstractActionRelationship> getActionRelation() { return actionRelation; } /** * Sets the '{@link ActionElement#getActionRelation() <em>actionRelation</em>}' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @param newActionRelation * the new value of the '{@link ActionElement#getActionRelation() actionRelation}' feature. * @generated */ public void setActionRelation(List<AbstractActionRelationship> newActionRelation) { actionRelation = newActionRelation; } /** * A toString method which prints the values of all EAttributes of this instance. <!-- begin-user-doc --> <!-- * end-user-doc --> * * @generated */ @Override public String toString() { return "ActionElement " + " [kind: " + getKind() + "]" + "{extends: " + super.toString() + "} "; } }