forked from winery/winery
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable selfserviceapplicationurls in servicetemplates
fix id scheme for relations during completion
- Loading branch information
Showing
11 changed files
with
247 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...ca.canonical/src/main/java/org/eclipse/winery/model/tosca/TSelfServiceApplicationUrl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 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.io.Serializable; | ||
import java.util.Objects; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlAttribute; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
import org.eclipse.winery.model.tosca.visitor.Visitor; | ||
|
||
import org.eclipse.jdt.annotation.NonNull; | ||
|
||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "tSelfServiceApplicationUrl") | ||
public class TSelfServiceApplicationUrl implements Serializable { | ||
|
||
public String getSelfServiceApplicationUrl() { | ||
return selfServiceApplicationUrl; | ||
} | ||
|
||
public void setSelfServiceApplicationUrl(String selfServiceApplicationUrl) { | ||
this.selfServiceApplicationUrl = selfServiceApplicationUrl; | ||
} | ||
|
||
@XmlAttribute(name = "xmlns") | ||
protected String selfServiceApplicationUrl; | ||
|
||
@Deprecated // used for XML deserialization of API request content | ||
public TSelfServiceApplicationUrl() { | ||
} | ||
|
||
public TSelfServiceApplicationUrl(@NonNull String selfServiceApplicationUrl) { | ||
this.selfServiceApplicationUrl = selfServiceApplicationUrl; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (!(o instanceof org.eclipse.winery.model.tosca.TSelfServiceApplicationUrl)) return false; | ||
org.eclipse.winery.model.tosca.TSelfServiceApplicationUrl that = (org.eclipse.winery.model.tosca.TSelfServiceApplicationUrl) o; | ||
return Objects.equals(selfServiceApplicationUrl, that.selfServiceApplicationUrl); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(selfServiceApplicationUrl); | ||
} | ||
|
||
public void accept(Visitor visitor) { | ||
visitor.visit(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
...sca.xml/src/main/java/org/eclipse/winery/model/tosca/xml/XTSelfServiceApplicationUrl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package org.eclipse.winery.model.tosca.xml; /******************************************************************************* | ||
* Copyright (c) 2023 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 | ||
*******************************************************************************/ | ||
|
||
|
||
import java.io.Serializable; | ||
import java.util.Objects; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlAttribute; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
import org.eclipse.winery.model.tosca.xml.visitor.Visitor; | ||
|
||
import org.eclipse.jdt.annotation.NonNull; | ||
|
||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "tSelfServiceApplicationUrl") | ||
public class XTSelfServiceApplicationUrl implements Serializable { | ||
|
||
public String getSelfServiceApplicationUrl() { | ||
return selfServiceApplicationUrl; | ||
} | ||
|
||
public void setSelfServiceApplicationUrl(String selfServiceApplicationUrl) { | ||
this.selfServiceApplicationUrl = selfServiceApplicationUrl; | ||
} | ||
|
||
@XmlAttribute(name = "xmlns") | ||
protected String selfServiceApplicationUrl; | ||
|
||
@Deprecated // used for XML deserialization of API request content | ||
public XTSelfServiceApplicationUrl() { | ||
} | ||
|
||
public XTSelfServiceApplicationUrl(@NonNull String selfServiceApplicationUrl) { | ||
this.selfServiceApplicationUrl = selfServiceApplicationUrl; | ||
} | ||
|
||
private XTSelfServiceApplicationUrl(XTSelfServiceApplicationUrl.Builder builder) { | ||
this.selfServiceApplicationUrl = builder.selfServiceApplicationUrl; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (!(o instanceof org.eclipse.winery.model.tosca.xml.XTSelfServiceApplicationUrl)) return false; | ||
org.eclipse.winery.model.tosca.xml.XTSelfServiceApplicationUrl that = (org.eclipse.winery.model.tosca.xml.XTSelfServiceApplicationUrl) o; | ||
return Objects.equals(selfServiceApplicationUrl, that.selfServiceApplicationUrl); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(selfServiceApplicationUrl); | ||
} | ||
|
||
|
||
public static class Builder { | ||
|
||
private final String selfServiceApplicationUrl; | ||
|
||
public Builder(String selfServiceApplicationUrl) { | ||
this.selfServiceApplicationUrl = selfServiceApplicationUrl; | ||
} | ||
|
||
public XTSelfServiceApplicationUrl build() { | ||
return new XTSelfServiceApplicationUrl(this); | ||
} | ||
} | ||
|
||
public void accept(Visitor visitor) { | ||
visitor.visit(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.