blob: 3f6994ef82ca77d4a4f5112c1a623f40b468dba9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Eugen Neufeld - initial API and implementation
*******************************************************************************/
package org.eclipse.emf.ecp.view.validation.test.model;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Library</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.emf.ecp.view.validation.test.model.Library#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.emf.ecp.view.validation.test.model.Library#getWriters <em>Writers</em>}</li>
* <li>{@link org.eclipse.emf.ecp.view.validation.test.model.Library#getBooks <em>Books</em>}</li>
* <li>{@link org.eclipse.emf.ecp.view.validation.test.model.Library#getLibrarian <em>Librarian</em>}</li>
* <li>{@link org.eclipse.emf.ecp.view.validation.test.model.Library#getPhoneNumber <em>Phone Number</em>}</li>
* </ul>
*
* @see org.eclipse.emf.ecp.view.validation.test.model.TestPackage#getLibrary()
* @model
* @generated
*/
public interface Library extends EObject {
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.emf.ecp.view.validation.test.model.TestPackage#getLibrary_Name()
* @model
* @generated
*/
String getName();
/**
* Sets the value of the '{@link org.eclipse.emf.ecp.view.validation.test.model.Library#getName <em>Name</em>}'
* attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
/**
* Returns the value of the '<em><b>Writers</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.emf.ecp.view.validation.test.model.Writer}.
* It is bidirectional and its opposite is '{@link org.eclipse.emf.ecp.view.validation.test.model.Writer#getLibrary
* <em>Library</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Writers</em>' containment reference list isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>Writers</em>' containment reference list.
* @see org.eclipse.emf.ecp.view.validation.test.model.TestPackage#getLibrary_Writers()
* @see org.eclipse.emf.ecp.view.validation.test.model.Writer#getLibrary
* @model opposite="library" containment="true" required="true"
* @generated
*/
EList<Writer> getWriters();
/**
* Returns the value of the '<em><b>Books</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.emf.ecp.view.validation.test.model.Book}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Books</em>' containment reference list isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>Books</em>' containment reference list.
* @see org.eclipse.emf.ecp.view.validation.test.model.TestPackage#getLibrary_Books()
* @model containment="true"
* @generated
*/
EList<Book> getBooks();
/**
* Returns the value of the '<em><b>Librarian</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Librarian</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>Librarian</em>' containment reference.
* @see #setLibrarian(Librarian)
* @see org.eclipse.emf.ecp.view.validation.test.model.TestPackage#getLibrary_Librarian()
* @model containment="true"
* @generated
*/
Librarian getLibrarian();
/**
* Sets the value of the '{@link org.eclipse.emf.ecp.view.validation.test.model.Library#getLibrarian
* <em>Librarian</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @param value the new value of the '<em>Librarian</em>' containment reference.
* @see #getLibrarian()
* @generated
*/
void setLibrarian(Librarian value);
/**
* Returns the value of the '<em><b>Phone Number</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Phone Number</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>Phone Number</em>' attribute.
* @see #setPhoneNumber(String)
* @see org.eclipse.emf.ecp.view.validation.test.model.TestPackage#getLibrary_PhoneNumber()
* @model dataType="org.eclipse.emf.ecp.view.validation.test.model.PhoneNumber"
* @generated
*/
String getPhoneNumber();
/**
* Sets the value of the '{@link org.eclipse.emf.ecp.view.validation.test.model.Library#getPhoneNumber <em>Phone
* Number</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @param value the new value of the '<em>Phone Number</em>' attribute.
* @see #getPhoneNumber()
* @generated
*/
void setPhoneNumber(String value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @model
* @generated
*/
boolean validate(DiagnosticChain diagnostic, Map<Object, Object> context);
} // Library