public Builder addSourceInterfaces(List<TInterface> sourceInterfaces) { if (sourceInterfaces == null) { return this; } TInterfaces tmp = new TInterfaces(); tmp.getInterface().addAll(sourceInterfaces); return addSourceInterfaces(tmp); }
public Builder addInterfaces(TInterface interfaces) { if (interfaces == null) { return this; } TInterfaces tmp = new TInterfaces(); tmp.getInterface().add(interfaces); return addInterfaces(tmp); }
public Builder addTargetInterfaces(TInterface targetInterfaces) { if (targetInterfaces == null) { return this; } TInterfaces tmp = new TInterfaces(); tmp.getInterface().add(targetInterfaces); return addTargetInterfaces(tmp); }
/** * Converts TOSCA YAML RelationshipTypes to TOSCA XML RelationshipTypes Additional element valid_target_types * (specifying Capability Types) is not converted * * @param node TOSCA YAML RelationshipType * @return TOSCA XML RelationshipType */ private TRelationshipType convert(org.eclipse.winery.model.tosca.yaml.TRelationshipType node, String id) { if (Objects.isNull(node)) return null; return convert(node, new TRelationshipType.Builder(id)) // TODO source or target interface? .addSourceInterfaces(convert(node.getInterfaces())) .build(); }
public Builder addInterfaces(List<TInterface> interfaces) { if (interfaces == null) { return this; } TInterfaces tmp = new TInterfaces(); tmp.getInterface().addAll(interfaces); return addInterfaces(tmp); }
public Builder setValidTarget(QName validTarget) { if (validTarget == null) { return this; } TRelationshipType.ValidTarget tmp = new TRelationshipType.ValidTarget(); tmp.setTypeRef(validTarget); return setValidTarget(tmp); }
public Builder addSourceInterfaces(TInterface sourceInterfaces) { if (sourceInterfaces == null) { return this; } TInterfaces tmp = new TInterfaces(); tmp.getInterface().add(sourceInterfaces); return addSourceInterfaces(tmp); }
public Builder setValidSource(QName validSource) { if (validSource == null) { return this; } TRelationshipType.ValidSource tmp = new TRelationshipType.ValidSource(); tmp.setTypeRef(validSource); return setValidSource(tmp); }
public Builder addTargetInterfaces(List<TInterface> targetInterfaces) { if (targetInterfaces == null) { return this; } TInterfaces tmp = new TInterfaces(); tmp.getInterface().addAll(targetInterfaces); return addTargetInterfaces(tmp); }