org.jresearch.flexess.client.impl.DefaultOperationMatcher Maven / Gradle / Ivy
The newest version!
package org.jresearch.flexess.client.impl;
import org.jresearch.flexess.client.IOperationMatcher;
import org.jresearch.flexess.core.model.uam.PObject;
import org.jresearch.flexess.core.model.uam.POperation;
public class DefaultOperationMatcher implements IOperationMatcher {
@Override
public POperation findOperation(PObject pobject, String operation) {
for (Object op : pobject.getEOperations()) {
if (((POperation) op).getName().equalsIgnoreCase(operation)) {
return (POperation) op;
}
}
return null;
}
}