16995b28f7ce1c463373a4e08f75f40d86504329
[vfc/nfvo/wfengine.git] / winery / org.eclipse.winery.common / src / main / java / org / eclipse / winery / common / ids / definitions / EntityTemplateId.java
1 /*******************************************************************************
2  * Copyright (c) 2013 University of Stuttgart.
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  * and the Apache License 2.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     Oliver Kopp - initial API and implementation
11  *******************************************************************************/
12 package org.eclipse.winery.common.ids.definitions;
13
14 import javax.xml.namespace.QName;
15
16 import org.eclipse.winery.common.ids.Namespace;
17 import org.eclipse.winery.common.ids.XMLId;
18 import org.eclipse.winery.common.ids.elements.TOSCAElementId;
19
20 /**
21  * ArtifactTemplates, PolicyTemplates, and ServiceTemplates are
22  * <em>directly nested</em> in a Definitions element. RelationshipTemplates and
23  * NodeTemplates are not. When approaching an EntityTemplateId, it is a thing
24  * directly nested in a Definitions element.
25  * 
26  * The others have {@link TOSCAElementId} as parent
27  */
28 public abstract class EntityTemplateId extends TOSCAComponentId {
29         
30         public EntityTemplateId(Namespace namespace, XMLId xmlId) {
31                 super(namespace, xmlId);
32         }
33         
34         public EntityTemplateId(String ns, String id, boolean URLencoded) {
35                 super(ns, id, URLencoded);
36         }
37         
38         public EntityTemplateId(QName qname) {
39                 super(qname);
40         }
41         
42 }