package org.eclipse.modisco.kdm.conceptual;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import org.eclipse.emf.texo.test.TexoTestObjectConverter;
import org.eclipse.emf.texo.test.TexoTestQNameConverter;
import org.eclipse.modisco.kdm.action.ActionElement;
import org.eclipse.modisco.kdm.core.KDMEntity;
import org.eclipse.modisco.kdm.source.SourceRef;
import org.eclipse.persistence.annotations.Converter;
import org.eclipse.persistence.annotations.Converters;
/**
* A representation of the model object '<em><b>AbstractConceptualElement</b></em>'. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
*/
@Entity(name = "conceptual_AbstractConceptualElement")
@Converters({ @Converter(converterClass = TexoTestObjectConverter.class, name = "TexoTestObjectConverter"),
@Converter(converterClass = TexoTestQNameConverter.class, name = "TexoTestQNameConverter") })
public abstract class AbstractConceptualElement extends KDMEntity {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@OneToMany(cascade = { CascadeType.ALL })
private Set<SourceRef> source = new HashSet<SourceRef>();
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@ManyToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
private Set<KDMEntity> implementation = new HashSet<KDMEntity>();
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@OneToMany(cascade = { CascadeType.ALL })
private Set<AbstractConceptualRelationship> conceptualRelation = new HashSet<AbstractConceptualRelationship>();
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@OneToMany(cascade = { CascadeType.ALL })
private Set<ActionElement> abstraction = new HashSet<ActionElement>();
/**
* Returns the value of '<em><b>source</b></em>' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the value of '<em><b>source</b></em>' feature
* @generated
*/
public Set<SourceRef> getSource() {
return source;
}
/**
* Sets the '{@link AbstractConceptualElement#getSource() <em>source</em>}' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param newSource
* the new value of the '{@link AbstractConceptualElement#getSource() source}' feature.
* @generated
*/
public void setSource(Set<SourceRef> newSource) {
source = newSource;
}
/**
* Returns the value of '<em><b>implementation</b></em>' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the value of '<em><b>implementation</b></em>' feature
* @generated
*/
public Set<KDMEntity> getImplementation() {
return implementation;
}
/**
* Sets the '{@link AbstractConceptualElement#getImplementation() <em>implementation</em>}' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param newImplementation
* the new value of the '{@link AbstractConceptualElement#getImplementation() implementation}' feature.
* @generated
*/
public void setImplementation(Set<KDMEntity> newImplementation) {
implementation = newImplementation;
}
/**
* Returns the value of '<em><b>conceptualRelation</b></em>' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the value of '<em><b>conceptualRelation</b></em>' feature
* @generated
*/
public Set<AbstractConceptualRelationship> getConceptualRelation() {
return conceptualRelation;
}
/**
* Sets the '{@link AbstractConceptualElement#getConceptualRelation() <em>conceptualRelation</em>}' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param newConceptualRelation
* the new value of the '{@link AbstractConceptualElement#getConceptualRelation() conceptualRelation}'
* feature.
* @generated
*/
public void setConceptualRelation(Set<AbstractConceptualRelationship> newConceptualRelation) {
conceptualRelation = newConceptualRelation;
}
/**
* Returns the value of '<em><b>abstraction</b></em>' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the value of '<em><b>abstraction</b></em>' feature
* @generated
*/
public Set<ActionElement> getAbstraction() {
return abstraction;
}
/**
* Sets the '{@link AbstractConceptualElement#getAbstraction() <em>abstraction</em>}' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param newAbstraction
* the new value of the '{@link AbstractConceptualElement#getAbstraction() abstraction}' feature.
* @generated
*/
public void setAbstraction(Set<ActionElement> newAbstraction) {
abstraction = newAbstraction;
}
/**
* 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 "AbstractConceptualElement " + "{extends: " + super.toString() + "} ";
}
}