Package gate.event

Examples of gate.event.CorpusEvent


      documentIndexes.put(docName, i);
      isLoadeds.add(false);
      if(!isTransientCorpus) {
        adoptDocument(doc);
      }
      fireDocumentAdded(new CorpusEvent(
          this, doc, i, CorpusEvent.DOCUMENT_ADDED));
     
      return true;
    }
  }
View Full Code Here


        doc.setDataStore(null);
      } catch (PersistenceException ex) {
        // this should never happen
      }
    }
    fireDocumentRemoved(new CorpusEvent(
        this, doc,
        index, CorpusEvent.DOCUMENT_REMOVED));
    return doc;
  }
View Full Code Here

        doc.setDataStore(null);
      } catch (PersistenceException ex) {
        // this should never happen
      }
    }
    fireDocumentRemoved(new CorpusEvent(
        this, doc,
        index, CorpusEvent.DOCUMENT_REMOVED));
    return true;
  }
View Full Code Here

      documentIndexes.put(docName, i);
      isLoadeds.add(false);
      if(!isTransientCorpus) {
        adoptDocument(doc);
      }
      fireDocumentAdded(new CorpusEvent(
          this, doc, i, CorpusEvent.DOCUMENT_ADDED));
     
      return true;
    }
  }
View Full Code Here

        doc.setDataStore(null);
      } catch (PersistenceException ex) {
        // this should never happen
      }
    }
    fireDocumentRemoved(new CorpusEvent(
        this, doc,
        index, CorpusEvent.DOCUMENT_REMOVED));
    return doc;
  }
View Full Code Here

        doc.setDataStore(null);
      } catch (PersistenceException ex) {
        // this should never happen
      }
    }
    fireDocumentRemoved(new CorpusEvent(
        this, doc,
        index, CorpusEvent.DOCUMENT_REMOVED));
    return true;
  }
View Full Code Here

      }
      int i = documentNames.size();
      documentNames.add(docName);
      originalIndexes.add(parentIndex);
      documentIndexes.put(docName, i);
      fireDocumentAdded(new CorpusEvent(
          this, doc, i, CorpusEvent.DOCUMENT_ADDED));
     
      return true;
    }
  }
View Full Code Here

    }
    String docName = documentNames.get(index);
    documentNames.remove(index);
    originalIndexes.remove(index);
    documentIndexes.remove(docName);
    fireDocumentRemoved(new CorpusEvent(
        this, null,  // can we get away with using null instead of doc?
        index, CorpusEvent.DOCUMENT_REMOVED));
    return null; // can we get away with using null instead of doc???
  }
View Full Code Here

    }
    String docName = documentNames.get(index);
    documentNames.remove(index);
    originalIndexes.remove(index);
    documentIndexes.remove(docName);
    fireDocumentRemoved(new CorpusEvent(
        this, null,
        index, CorpusEvent.DOCUMENT_REMOVED));
    return true;
  }
View Full Code Here

TOP

Related Classes of gate.event.CorpusEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.