@Override public void reInit() throws ResourceInstantiationException { super.reInit(); fireGazetteerEvent(new GazetteerEvent(this,GazetteerEvent.REINIT)); }//reInit()
@Override public void setTarget(Object target) { if (null == target) { throw new GateRuntimeException("The resource set is null."); } if (! (target instanceof Gazetteer) ) { throw new GateRuntimeException( "The resource set must be of type gate.creole.gazetteer.Gazetteer\n"+ "and not " + target.getClass()); } if(((Gazetteer)target).getListsURL() == null) { // not a file based gazetteer: we cannot display it. throw new IllegalArgumentException("Not a file-based gazetteer."); } ((Gazetteer) target).addGazetteerListener(this); processGazetteerEvent(new GazetteerEvent(target, GazetteerEvent.REINIT)); }