gate.compound.CompoundDocumentEvent Maven / Gradle / Ivy
package gate.compound;
/**
* Event that indicates the removal or addition of a document to the compound
* document.
*
* @author niraj
*
*/
public class CompoundDocumentEvent {
/**
* A source compound document, where a document is added or deleted.
*/
private CompoundDocument source;
/**
* ID of the document which is either added to or deleted from the source
* compound document.
*/
private String documentID;
/**
* Constructor
*
* @param source -
* a source compound document, where a document is added or
* deleted.
* @param documentID -
* ID of the added or deleted document.
*/
public CompoundDocumentEvent(CompoundDocument source, String documentID) {
this.source = source;
this.documentID = documentID;
}
/**
* Gets the source compound document where a document is added to it or
* deleted from.
*/
public CompoundDocument getSource() {
return source;
}
/**
* Gets the id of the added or deleted document.
*/
public String getDocumentID() {
return documentID;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy