/** * * @param uimaEvent * @param uimaArg * @param argPos * @return * <ul> * <li><em>Theme</em> if <tt>argPos</tt> is 1</li> * <li><em>Theme2</em> when it's the second argument and it's a * protein (actually: when the argument is not another * <tt>EventMention</tt>) and the event type is "Binding"</li> * <li><em>Cause</em> otherwise</li> * </ul> */ private String determineArgumentRole(EventMention uimaEvent, ArgumentMention uimaArg, int argPos) { if (argPos == 1) { return "Theme"; } if (uimaEvent.getSpecificType().equals("Binding") && !(uimaArg.getRef() instanceof EventMention)) { return "Theme2"; } return "Cause"; }
ArgumentMention argument = (ArgumentMention) arguments.get(i); if (argument != null) { Annotation reference = argument.getRef(); if (null == reference) throw new IllegalArgumentException(