Skip to content

Package: Writer

Writer

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: * Johannes Faltermeier
14: *
15: *******************************************************************************/
16: package org.eclipse.emf.ecp.validation.test.test;
17:
18: import java.util.Date;
19: import java.util.Map;
20:
21: import org.eclipse.emf.common.util.DiagnosticChain;
22: import org.eclipse.emf.common.util.EList;
23: import org.eclipse.emf.ecore.EObject;
24:
25: /**
26: * <!-- begin-user-doc -->
27: * A representation of the model object '<em><b>Writer</b></em>'.
28: * <!-- end-user-doc -->
29: *
30: * <p>
31: * The following features are supported:
32: * <ul>
33: * <li>{@link org.eclipse.emf.ecp.validation.test.test.Writer#getFirstName <em>First Name</em>}</li>
34: * <li>{@link org.eclipse.emf.ecp.validation.test.test.Writer#getLastName <em>Last Name</em>}</li>
35: * <li>{@link org.eclipse.emf.ecp.validation.test.test.Writer#getEMail <em>EMail</em>}</li>
36: * <li>{@link org.eclipse.emf.ecp.validation.test.test.Writer#getBirthDate <em>Birth Date</em>}</li>
37: * <li>{@link org.eclipse.emf.ecp.validation.test.test.Writer#getBooks <em>Books</em>}</li>
38: * <li>{@link org.eclipse.emf.ecp.validation.test.test.Writer#isPseudonym <em>Pseudonym</em>}</li>
39: * <li>{@link org.eclipse.emf.ecp.validation.test.test.Writer#getLibrary <em>Library</em>}</li>
40: * </ul>
41: * </p>
42: *
43: * @see org.eclipse.emf.ecp.validation.test.test.TestPackage#getWriter()
44: * @model
45: * @generated
46: */
47: public interface Writer extends EObject {
48:         /**
49:          * Returns the value of the '<em><b>First Name</b></em>' attribute.
50:          * <!-- begin-user-doc -->
51:          * <p>
52:          * If the meaning of the '<em>First Name</em>' attribute isn't clear, there really should be more of a description
53:          * here...
54:          * </p>
55:          * <!-- end-user-doc -->
56:          *
57:          * @return the value of the '<em>First Name</em>' attribute.
58:          * @see #setFirstName(String)
59:          * @see org.eclipse.emf.ecp.validation.test.test.TestPackage#getWriter_FirstName()
60:          * @model
61:          * @generated
62:          */
63:         String getFirstName();
64:
65:         /**
66:          * Sets the value of the '{@link org.eclipse.emf.ecp.validation.test.test.Writer#getFirstName <em>First Name</em>}'
67:          * attribute.
68:          * <!-- begin-user-doc -->
69:          * <!-- end-user-doc -->
70:          *
71:          * @param value the new value of the '<em>First Name</em>' attribute.
72:          * @see #getFirstName()
73:          * @generated
74:          */
75:         void setFirstName(String value);
76:
77:         /**
78:          * Returns the value of the '<em><b>Last Name</b></em>' attribute.
79:          * <!-- begin-user-doc -->
80:          * <p>
81:          * If the meaning of the '<em>Last Name</em>' attribute isn't clear, there really should be more of a description
82:          * here...
83:          * </p>
84:          * <!-- end-user-doc -->
85:          *
86:          * @return the value of the '<em>Last Name</em>' attribute.
87:          * @see #setLastName(String)
88:          * @see org.eclipse.emf.ecp.validation.test.test.TestPackage#getWriter_LastName()
89:          * @model
90:          * @generated
91:          */
92:         String getLastName();
93:
94:         /**
95:          * Sets the value of the '{@link org.eclipse.emf.ecp.validation.test.test.Writer#getLastName <em>Last Name</em>}'
96:          * attribute.
97:          * <!-- begin-user-doc -->
98:          * <!-- end-user-doc -->
99:          *
100:          * @param value the new value of the '<em>Last Name</em>' attribute.
101:          * @see #getLastName()
102:          * @generated
103:          */
104:         void setLastName(String value);
105:
106:         /**
107:          * Returns the value of the '<em><b>EMail</b></em>' attribute.
108:          * <!-- begin-user-doc -->
109:          * <p>
110:          * If the meaning of the '<em>EMail</em>' attribute isn't clear, there really should be more of a description
111:          * here...
112:          * </p>
113:          * <!-- end-user-doc -->
114:          *
115:          * @return the value of the '<em>EMail</em>' attribute.
116:          * @see #setEMail(String)
117:          * @see org.eclipse.emf.ecp.validation.test.test.TestPackage#getWriter_EMail()
118:          * @model
119:          * @generated
120:          */
121:         String getEMail();
122:
123:         /**
124:          * Sets the value of the '{@link org.eclipse.emf.ecp.validation.test.test.Writer#getEMail <em>EMail</em>}'
125:          * attribute.
126:          * <!-- begin-user-doc -->
127:          * <!-- end-user-doc -->
128:          *
129:          * @param value the new value of the '<em>EMail</em>' attribute.
130:          * @see #getEMail()
131:          * @generated
132:          */
133:         void setEMail(String value);
134:
135:         /**
136:          * Returns the value of the '<em><b>Birth Date</b></em>' attribute.
137:          * <!-- begin-user-doc -->
138:          * <p>
139:          * If the meaning of the '<em>Birth Date</em>' attribute isn't clear, there really should be more of a description
140:          * here...
141:          * </p>
142:          * <!-- end-user-doc -->
143:          *
144:          * @return the value of the '<em>Birth Date</em>' attribute.
145:          * @see #setBirthDate(Date)
146:          * @see org.eclipse.emf.ecp.validation.test.test.TestPackage#getWriter_BirthDate()
147:          * @model
148:          * @generated
149:          */
150:         Date getBirthDate();
151:
152:         /**
153:          * Sets the value of the '{@link org.eclipse.emf.ecp.validation.test.test.Writer#getBirthDate <em>Birth Date</em>}'
154:          * attribute.
155:          * <!-- begin-user-doc -->
156:          * <!-- end-user-doc -->
157:          *
158:          * @param value the new value of the '<em>Birth Date</em>' attribute.
159:          * @see #getBirthDate()
160:          * @generated
161:          */
162:         void setBirthDate(Date value);
163:
164:         /**
165:          * Returns the value of the '<em><b>Books</b></em>' reference list.
166:          * The list contents are of type {@link org.eclipse.emf.ecp.validation.test.test.Book}.
167:          * It is bidirectional and its opposite is '{@link org.eclipse.emf.ecp.validation.test.test.Book#getWriters
168:          * <em>Writers</em>}'.
169:          * <!-- begin-user-doc -->
170:          * <p>
171:          * If the meaning of the '<em>Books</em>' reference list isn't clear, there really should be more of a description
172:          * here...
173:          * </p>
174:          * <!-- end-user-doc -->
175:          *
176:          * @return the value of the '<em>Books</em>' reference list.
177:          * @see org.eclipse.emf.ecp.validation.test.test.TestPackage#getWriter_Books()
178:          * @see org.eclipse.emf.ecp.validation.test.test.Book#getWriters
179:          * @model opposite="writers"
180:          * @generated
181:          */
182:         EList<Book> getBooks();
183:
184:         /**
185:          * Returns the value of the '<em><b>Pseudonym</b></em>' attribute.
186:          * The default value is <code>"false"</code>.
187:          * <!-- begin-user-doc -->
188:          * <p>
189:          * If the meaning of the '<em>Pseudonym</em>' attribute isn't clear, there really should be more of a description
190:          * here...
191:          * </p>
192:          * <!-- end-user-doc -->
193:          *
194:          * @return the value of the '<em>Pseudonym</em>' attribute.
195:          * @see #setPseudonym(boolean)
196:          * @see org.eclipse.emf.ecp.validation.test.test.TestPackage#getWriter_Pseudonym()
197:          * @model default="false"
198:          * @generated
199:          */
200:         boolean isPseudonym();
201:
202:         /**
203:          * Sets the value of the '{@link org.eclipse.emf.ecp.validation.test.test.Writer#isPseudonym <em>Pseudonym</em>}'
204:          * attribute.
205:          * <!-- begin-user-doc -->
206:          * <!-- end-user-doc -->
207:          *
208:          * @param value the new value of the '<em>Pseudonym</em>' attribute.
209:          * @see #isPseudonym()
210:          * @generated
211:          */
212:         void setPseudonym(boolean value);
213:
214:         /**
215:          * Returns the value of the '<em><b>Library</b></em>' container reference.
216:          * It is bidirectional and its opposite is '{@link org.eclipse.emf.ecp.validation.test.test.Library#getWriters
217:          * <em>Writers</em>}'.
218:          * <!-- begin-user-doc -->
219:          * <p>
220:          * If the meaning of the '<em>Library</em>' container reference isn't clear, there really should be more of a
221:          * description here...
222:          * </p>
223:          * <!-- end-user-doc -->
224:          *
225:          * @return the value of the '<em>Library</em>' container reference.
226:          * @see #setLibrary(Library)
227:          * @see org.eclipse.emf.ecp.validation.test.test.TestPackage#getWriter_Library()
228:          * @see org.eclipse.emf.ecp.validation.test.test.Library#getWriters
229:          * @model opposite="writers" transient="false"
230:          * @generated
231:          */
232:         Library getLibrary();
233:
234:         /**
235:          * Sets the value of the '{@link org.eclipse.emf.ecp.validation.test.test.Writer#getLibrary <em>Library</em>}'
236:          * container reference.
237:          * <!-- begin-user-doc -->
238:          * <!-- end-user-doc -->
239:          *
240:          * @param value the new value of the '<em>Library</em>' container reference.
241:          * @see #getLibrary()
242:          * @generated
243:          */
244:         void setLibrary(Library value);
245:
246:         /**
247:          * <!-- begin-user-doc -->
248:          * <!-- end-user-doc -->
249:          *
250:          * @model
251:          * @generated
252:          */
253:         boolean validate(DiagnosticChain diagnostic, Map<Object, Object> context);
254:
255: } // Writer