Method: EClassifierLiteralType(IReadOnlyQueryEnvironment, EClassifier)

1: /*******************************************************************************
2: * Copyright (c) 2015 Obeo.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * Obeo - initial API and implementation
10: *******************************************************************************/
11: package org.eclipse.acceleo.query.validation.type;
12:
13: import org.eclipse.acceleo.query.runtime.IReadOnlyQueryEnvironment;
14: import org.eclipse.emf.ecore.EClassifier;
15:
16: /**
17: * {@link EClassifier} literal validation type.
18: *
19: * @author <a href="mailto:yvan.lussaud@obeo.fr">Yvan Lussaud</a>
20: */
21: public final class EClassifierLiteralType extends EClassifierType {
22:
23:         /**
24:          * Constructor.
25:          *
26:          * @param queryEnvironment
27:          * the {@link IReadOnlyQueryEnvironment}
28:          * @param type
29:          * the {@link EClassifier}
30:          */
31:         public EClassifierLiteralType(IReadOnlyQueryEnvironment queryEnvironment, EClassifier type) {
32:                 super(queryEnvironment, type);
33:         }
34:
35:         /**
36:          * {@inheritDoc}
37:          *
38:          * @see java.lang.Object#toString()
39:          */
40:         @Override
41:         public String toString() {
42:                 return "EClassifierLiteral=" + getType().getName();
43:         }
44:
45: }