Search in sources :

Example 1 with PropertyConstraintsApiData

use of org.eclipse.winery.repository.rest.resources.apiData.boundarydefinitions.PropertyConstraintsApiData in project winery by eclipse.

the class PropertyConstraintsResource method onGet.

@GET
@Produces(MediaType.APPLICATION_JSON)
public List<PropertyConstraintsApiData> onGet() {
    List<PropertyConstraintsApiData> apiDatas = new ArrayList<>();
    Iterator<TPropertyConstraint> iterator = this.propertyConstraints.getPropertyConstraint().iterator();
    for (TPropertyConstraint propertyConstraint : this.propertyConstraints.getPropertyConstraint()) {
        apiDatas.add(new PropertyConstraintsApiData(propertyConstraint));
    }
    return apiDatas;
}
Also used : PropertyConstraintsApiData(org.eclipse.winery.repository.rest.resources.apiData.boundarydefinitions.PropertyConstraintsApiData) ArrayList(java.util.ArrayList) TPropertyConstraint(org.eclipse.winery.model.tosca.TPropertyConstraint)

Aggregations

ArrayList (java.util.ArrayList)1 TPropertyConstraint (org.eclipse.winery.model.tosca.TPropertyConstraint)1 PropertyConstraintsApiData (org.eclipse.winery.repository.rest.resources.apiData.boundarydefinitions.PropertyConstraintsApiData)1