001 /*
002 * The contents of this file are subject to the Mozilla Public License
003 * Version 1.1 (the "License"); you may not use this file except in
004 * compliance with the License. You may obtain a copy of the License at
005 * http://www.mozilla.org/MPL/
006 *
007 * Software distributed under the License is distributed on an "AS IS" basis,
008 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
009 * the specific language governing rights and limitations under the License.
010 *
011 * The Original Code is Protege-2000.
012 *
013 * The Initial Developer of the Original Code is Stanford University. Portions
014 * created by Stanford University are Copyright (C) 2007. All Rights Reserved.
015 *
016 * Protege was developed by Stanford Medical Informatics
017 * (http://www.smi.stanford.edu) at the Stanford University School of Medicine
018 * with support from the National Library of Medicine, the National Science
019 * Foundation, and the Defense Advanced Research Projects Agency. Current
020 * information about Protege can be obtained at http://protege.stanford.edu.
021 *
022 */
023
024 package edu.stanford.smi.protegex.owl.model.event;
025
026 import edu.stanford.smi.protegex.owl.model.RDFProperty;
027 import edu.stanford.smi.protegex.owl.model.RDFResource;
028 import edu.stanford.smi.protegex.owl.model.RDFSClass;
029
030 /**
031 * @author Holger Knublauch <holger@knublauch.com>
032 */
033 public interface ModelListener extends ProtegeKnowledgeBaseListener {
034
035 /**
036 * Called after a new RDFSClass has been created.
037 *
038 * @param cls the new class
039 */
040 void classCreated(RDFSClass cls);
041
042
043 /**
044 * Called after an RDFSClass has been deleted.
045 *
046 * @param cls the deleted class
047 */
048 void classDeleted(RDFSClass cls);
049
050
051 /**
052 * Called after an individual has been created.
053 *
054 * @param resource the new resource
055 */
056 void individualCreated(RDFResource resource);
057
058
059 /**
060 * Called after an individual has been deleted.
061 *
062 * @param resource the old resource
063 */
064 void individualDeleted(RDFResource resource);
065
066
067 /**
068 * Called after a property has been created.
069 *
070 * @param property the new property
071 */
072 void propertyCreated(RDFProperty property);
073
074
075 /**
076 * Called after a property has been deleted.
077 *
078 * @param property the old property
079 */
080 void propertyDeleted(RDFProperty property);
081
082
083 /**
084 * Called after the name of a resource has changed.
085 *
086 * @param resource the resource that changed its name
087 * @param oldName the old name of the resource
088 */
089 void resourceNameChanged(RDFResource resource, String oldName);
090 }
091