/
Definitions.java
62 lines (51 loc) · 1.94 KB
/
Definitions.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*******************************************************************************
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
* which is available at https://www.apache.org/licenses/LICENSE-2.0.
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
*******************************************************************************/
package org.eclipse.winery.model.tosca;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "Definitions")
public class Definitions extends TDefinitions {
@XmlTransient
protected Map<String, QName> importDefinitions = new HashMap<>();
public Definitions() {
}
public Definitions(Builder builder) {
super(builder);
}
public Map<String, QName> getImportDefinitions() {
return importDefinitions;
}
public void setImportDefinitions(Map<String, QName> importDefinitions) {
this.importDefinitions = importDefinitions;
}
public static class Builder extends TDefinitions.Builder<Builder> {
public Builder(String id, String target_namespace) {
super(id, target_namespace);
}
@Override
public Builder self() {
return this;
}
public Definitions build() {
return new Definitions(this);
}
}
}