Search in sources :

Example 1 with OperationSet

use of com.developmentontheedge.be5.metadata.model.OperationSet in project be5 by DevelopmentOnTheEdge.

the class DocumentGeneratorImpl method getQueryOperations.

private List<Operation> getQueryOperations(Query query) {
    List<Operation> queryOperations = new ArrayList<>();
    OperationSet operationNames = query.getOperationNames();
    for (String operationName : operationNames.getFinalValues()) {
        Operation op = query.getEntity().getOperations().get(operationName);
        if (op != null)
            queryOperations.add(op);
    }
    return queryOperations;
}
Also used : ArrayList(java.util.ArrayList) Operation(com.developmentontheedge.be5.metadata.model.Operation) OperationSet(com.developmentontheedge.be5.metadata.model.OperationSet)

Aggregations

Operation (com.developmentontheedge.be5.metadata.model.Operation)1 OperationSet (com.developmentontheedge.be5.metadata.model.OperationSet)1 ArrayList (java.util.ArrayList)1