use of org.eclipse.winery.model.tosca.xml.XTRequirement 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
}
Aggregations