public AbstractIMSearchAction(String name, NSDictionary associations, WOElement element) {
super(name, associations, element);
_value = (WOAssociation) associations.objectForKey("value");
_values = (WOAssociation) associations.objectForKey("values");
if (_value == null && _values == null) {
throw new WODynamicElementCreationException("Only one of 'value' or 'values' can be bound at any time.");
}
_quicksilver = (WOAssociation) associations.objectForKey("quicksilver");
_optionsDictionary = (WOAssociation) associations.objectForKey("optionsDictionary");
_optionsArray = (WOAssociation) associations.objectForKey("optionsArray");
if (_optionsArray == null && _optionsDictionary == null) {
throw new WODynamicElementCreationException("Only one of 'optionsArray' or 'optionsDictionary' can be bound at any time.");
}
if (_optionsArray != null && _optionsDictionary != null) {
throw new WODynamicElementCreationException("Both 'optionsArray' and 'optionsDictionary' cannot be bound at the same time.");
}
_optionKeyPath = (WOAssociation) associations.objectForKey("optionKeyPath");
if (_optionKeyPath != null && _optionsDictionary != null) {
throw new WODynamicElementCreationException("Both 'optionKeyPath' and 'optionsDictionary' cannot be bound at the same time.");
}
}