public void visit(TRequirement requirement) { final TEntityTemplate.Properties properties = requirement.getProperties(); if (properties != null) { properties.accept(this); } final TEntityTemplate.PropertyConstraints propertyConstraints = requirement.getPropertyConstraints(); if (propertyConstraints != null) { propertyConstraints.accept(this); } // meta model does not offer more children }
public void visit(TBoundaryDefinitions.Properties properties) { final TBoundaryDefinitions.Properties.PropertyMappings propertyMappings = properties.getPropertyMappings(); if (propertyMappings != null) { for (TPropertyMapping propertyMapping : propertyMappings.getPropertyMapping()) { propertyMapping.accept(this); } } }
public Builder(TEntityType entityType) { super(entityType); this.name = entityType.getName(); this.derivedFrom = entityType.getDerivedFrom(); this.addTags(entityType.getTags()); this.abstractValue = entityType.getAbstract(); this.finalValue = entityType.getFinal(); this.targetNamespace = entityType.getTargetNamespace(); this.propertiesDefinition = entityType.getPropertiesDefinition(); }
public Builder(TEntityTemplate entityTemplate) { super(entityTemplate); this.type = entityTemplate.getType(); this.properties = entityTemplate.getProperties(); this.addPropertyConstraints(entityTemplate.getPropertyConstraints()); }
private void acceptBoundaryDefinitionsPolicies(@NonNull TBoundaryDefinitions boundaryDefinitions) { final TPolicies policies = boundaryDefinitions.getPolicies(); if (policies != null) { for (TPolicy policy : policies.getPolicy()) { policy.accept(this); } } }
public PropertyMappingsApi(TServiceTemplate ste) { this.propertyMappings = ste.getBoundaryDefinitions().getProperties().getPropertyMappings(); } }
public Builder(TExtensibleElements extensibleElements) { this.addDocumentation(extensibleElements.getDocumentation()); this.addAny(extensibleElements.getAny()); this.addOtherAttributes(extensibleElements.getOtherAttributes()); }
private void acceptBoundaryDefinitionsRequirements(@NonNull TBoundaryDefinitions boundaryDefinitions) { final TBoundaryDefinitions.Requirements requirements = boundaryDefinitions.getRequirements(); if (requirements != null) { for (TRequirementRef requirementRef : requirements.getRequirement()) { requirementRef.accept(this); } } }
private void acceptBoundaryDefinitionsCapabilities(@NonNull TBoundaryDefinitions boundaryDefinitions) { final TBoundaryDefinitions.Capabilities capabilities = boundaryDefinitions.getCapabilities(); if (capabilities != null) { for (TCapabilityRef capabilityRef : capabilities.getCapability()) { capabilityRef.accept(this); } } }
/** * Fetch the list of constraints from the given definition. If the list does * not exist, the list is created an stored in the given capDef */ public static List<TConstraint> getConstraints(TCapabilityDefinition capDef) { Constraints constraints = capDef.getConstraints(); if (constraints == null) { constraints = new Constraints(); capDef.setConstraints(constraints); } return constraints.getConstraint(); }
/** * Fetch the list of constraints from the given definition. If the list does * not exist, the list is created an stored in the given def */ public static List<TConstraint> getConstraints(TRequirementDefinition def) { Constraints constraints = def.getConstraints(); if (constraints == null) { constraints = new Constraints(); def.setConstraints(constraints); } return constraints.getConstraint(); }
/** * Returns the Properties. If no properties exist, the element is created */ public static org.eclipse.winery.model.tosca.TBoundaryDefinitions.Properties getProperties(TBoundaryDefinitions defs) { org.eclipse.winery.model.tosca.TBoundaryDefinitions.Properties properties = defs.getProperties(); if (properties == null) { properties = new org.eclipse.winery.model.tosca.TBoundaryDefinitions.Properties(); defs.setProperties(properties); } return properties; }
public void visit(TNodeTemplate.Requirements requirements) { for (TRequirement requirement : requirements.getRequirement()) { requirement.accept(this); } // meta model does not offer more children }
public Builder setValidSource(QName validSource) { if (validSource == null) { return this; } TRelationshipType.ValidSource tmp = new TRelationshipType.ValidSource(); tmp.setTypeRef(validSource); return setValidSource(tmp); }
public Builder setValidTarget(QName validTarget) { if (validTarget == null) { return this; } TRelationshipType.ValidTarget tmp = new TRelationshipType.ValidTarget(); tmp.setTypeRef(validTarget); return setValidTarget(tmp); }
public void visit(TNodeTemplate.Capabilities capabilities) { for (TCapability capability : capabilities.getCapability()) { capability.accept(this); } // meta model does not offer more children }
private void acceptBoundaryDefinitionsInterfaces(@NonNull TBoundaryDefinitions boundaryDefinitions) { final TBoundaryDefinitions.Interfaces interfaces = boundaryDefinitions.getInterfaces(); if (interfaces != null) { for (TExportedInterface exportedInterface : interfaces.getInterface()) { exportedInterface.accept(this); } } }
public T setDerivedFrom(QName derivedFrom) { if (derivedFrom == null) { return self(); } if (this.derivedFrom == null) { this.derivedFrom = new TEntityType.DerivedFrom(); } this.derivedFrom.setTypeRef(derivedFrom); return self(); }
public void visit(TEntityTemplate.PropertyConstraints propertyConstraints) { for (TPropertyConstraint propertyConstraint : propertyConstraints.getPropertyConstraint()) { propertyConstraint.accept(this); } // meta model does not offer more children }