Search in sources :

Example 1 with XTDeploymentArtifact

use of org.eclipse.winery.model.tosca.xml.XTDeploymentArtifact in project winery by eclipse.

the class Visitor method visit.

public void visit(XTNodeTemplate nodeTemplate) {
    this.visit((XRelationshipSourceOrTarget) nodeTemplate);
    final List<XTRequirement> requirements = nodeTemplate.getRequirements();
    if (requirements != null) {
        requirements.forEach(requirement -> requirement.accept(this));
    }
    final List<XTCapability> capabilities = nodeTemplate.getCapabilities();
    if (capabilities != null) {
        capabilities.forEach(capability -> capability.accept(this));
    }
    final List<XTDeploymentArtifact> deploymentArtifacts = nodeTemplate.getDeploymentArtifacts();
    if (deploymentArtifacts != null) {
        for (XTDeploymentArtifact deploymentArtifact : deploymentArtifacts) {
            deploymentArtifact.accept(this);
        }
    }
    final List<XTPolicy> policies = nodeTemplate.getPolicies();
    if (policies != null) {
        for (XTPolicy policy : policies) {
            policy.accept(this);
        }
    }
// metamodel does not offer more children
}
Also used : XTRequirement(org.eclipse.winery.model.tosca.xml.XTRequirement) XTCapability(org.eclipse.winery.model.tosca.xml.XTCapability) XTDeploymentArtifact(org.eclipse.winery.model.tosca.xml.XTDeploymentArtifact) XTPolicy(org.eclipse.winery.model.tosca.xml.XTPolicy)

Aggregations

XTCapability (org.eclipse.winery.model.tosca.xml.XTCapability)1 XTDeploymentArtifact (org.eclipse.winery.model.tosca.xml.XTDeploymentArtifact)1 XTPolicy (org.eclipse.winery.model.tosca.xml.XTPolicy)1 XTRequirement (org.eclipse.winery.model.tosca.xml.XTRequirement)1