/*
* Created on Aug 30, 2004
*/
/**
* @author Evren Sirin
*/
public BindingListImpl() {
super(Binding.class);
}
}
}
}
for(int i = 0; i < size(); i++) {
return binding;
}
return null;
}
// seems not to work
// public boolean containsBinding(Binding binding) {
// if (size() == 0)
// return false;
//
// Iterator<Binding> iter = iterator();
// while (iter.hasNext()) {
// Binding toCompare = iter.next();
// // TODO dmi this is a dirty hack to overcome input and output binding mixtures and resulting class cast exceptions
// Parameter p = (Parameter) binding.getProperty(OWLS.Process.toParam).castTo(Parameter.class);
// if (!toCompare.getParameter().getURI().equals(p.getURI()))
// return false;
// if (!toCompare.getValue().equals(binding.getValue()))
// return false;
// }
//
// return false;
// }
}
}
}
}