/**
* <copyright>
* </copyright>
*
* $Id: OneToOne.java,v 1.7 2008/09/21 19:03:18 mtaal Exp $
*/
package org.eclipse.emf.teneo.annotations.pannotation;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>One To One</b></em>'. <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#getTargetEntity <em>Target Entity</em>}</li>
* <li>{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#getCascade <em>Cascade</em>}</li>
* <li>{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#getFetch <em>Fetch</em>}</li>
* <li>{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#isOptional <em>Optional</em>}</li>
* <li>{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#getMappedBy <em>Mapped By</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.emf.teneo.annotations.pannotation.PannotationPackage#getOneToOne()
* @model annotation="teneo/internal/Target 0='EReference'"
* annotation="http://www.eclipse.org/emf/2002/Ecore constraints='IsNotManyValued'"
* @generated
*/
public interface OneToOne extends PAnnotation {
/**
* Returns the value of the '<em><b>Fetch</b></em>' attribute. The default value is <code>"EAGER"</code>.
* The literals are from the enumeration {@link org.eclipse.emf.teneo.annotations.pannotation.FetchType}. <!--
* begin-user-doc -->
* <p>
* If the meaning of the '<em>Fetch</em>' attribute isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>Fetch</em>' attribute.
* @see org.eclipse.emf.teneo.annotations.pannotation.FetchType
* @see #setFetch(FetchType)
* @see org.eclipse.emf.teneo.annotations.pannotation.PannotationPackage#getOneToOne_Fetch()
* @model default="EAGER"
* @generated
*/
FetchType getFetch();
/**
* Sets the value of the '{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#getFetch <em>Fetch</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @param value the new value of the '<em>Fetch</em>' attribute.
* @see org.eclipse.emf.teneo.annotations.pannotation.FetchType
* @see #isSetFetch()
* @see #unsetFetch()
* @see #getFetch()
* @generated
*/
void setFetch(FetchType value);
/**
* Unsets the value of the '{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#getFetch <em>Fetch</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isSetFetch()
* @see #getFetch()
* @see #setFetch(FetchType)
* @generated
*/
void unsetFetch();
/**
* Returns whether the value of the '{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#getFetch <em>Fetch</em>}' attribute is set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return whether the value of the '<em>Fetch</em>' attribute is set.
* @see #unsetFetch()
* @see #getFetch()
* @see #setFetch(FetchType)
* @generated
*/
boolean isSetFetch();
/**
* Returns the value of the '<em><b>Optional</b></em>' attribute.
* The default value is <code>"true"</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Optional</em>' attribute isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Optional</em>' attribute.
* @see #setOptional(boolean)
* @see org.eclipse.emf.teneo.annotations.pannotation.PannotationPackage#getOneToOne_Optional()
* @model default="true"
* @generated
*/
boolean isOptional();
/**
* Sets the value of the '{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#isOptional <em>Optional</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @param value the new value of the '<em>Optional</em>' attribute.
* @see #isOptional()
* @generated
*/
void setOptional(boolean value);
/**
* Returns the value of the '<em><b>Target Entity</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Target Entity</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Target Entity</em>' attribute.
* @see #setTargetEntity(String)
* @see org.eclipse.emf.teneo.annotations.pannotation.PannotationPackage#getOneToOne_TargetEntity()
* @model
* @generated
*/
String getTargetEntity();
/**
* Sets the value of the '{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#getTargetEntity <em>Target Entity</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @param value the new value of the '<em>Target Entity</em>' attribute.
* @see #getTargetEntity()
* @generated
*/
void setTargetEntity(String value);
/**
* Returns the value of the '<em><b>Cascade</b></em>' attribute list.
* The list contents are of type {@link org.eclipse.emf.teneo.annotations.pannotation.CascadeType}.
* The literals are from the enumeration {@link org.eclipse.emf.teneo.annotations.pannotation.CascadeType}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Cascade</em>' attribute list isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Cascade</em>' attribute list.
* @see org.eclipse.emf.teneo.annotations.pannotation.CascadeType
* @see org.eclipse.emf.teneo.annotations.pannotation.PannotationPackage#getOneToOne_Cascade()
* @model
* @generated
*/
EList<CascadeType> getCascade();
/**
* Returns the value of the '<em><b>Mapped By</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Mapped By</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Mapped By</em>' attribute.
* @see #setMappedBy(String)
* @see org.eclipse.emf.teneo.annotations.pannotation.PannotationPackage#getOneToOne_MappedBy()
* @model
* @generated
*/
String getMappedBy();
/**
* Sets the value of the '{@link org.eclipse.emf.teneo.annotations.pannotation.OneToOne#getMappedBy <em>Mapped By</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @param value the new value of the '<em>Mapped By</em>' attribute.
* @see #getMappedBy()
* @generated
*/
void setMappedBy(String value);
} // OneToOne