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;
025    
026    import java.util.Collection;
027    import java.util.Iterator;
028    
029    /**
030     * An enumerated class which lists valid individuals as its values of
031     * the owl:oneOf property.
032     *
033     * @author Holger Knublauch  <holger@knublauch.com>
034     */
035    public interface OWLEnumeratedClass extends OWLAnonymousClass {
036    
037        /**
038         * Adds a resource to this enumeration.
039         *
040         * @param resource the RDFResource to add (typically individuals)
041         */
042        void addOneOf(RDFResource resource);
043    
044    
045        /**
046         * Gets the values of the owl:oneOf property at this, i.e. the
047         * resources that are part of this enumeration.
048         *
049         * @return the values of owl:oneOf (a Collection of RDFResources)
050         */
051        Collection getOneOf();
052    
053    
054        /**
055         * @deprecated use getOneOf instead
056         */
057        Collection getOneOfValues();
058    
059    
060        /**
061         * Gets an Iterator of the values in the owl:oneOf list.
062         * @return an Iterator of RDFResources
063         */
064        Iterator listOneOf();
065    
066    
067        /**
068         * Removes a resource from this enumeration.
069         *
070         * @param resource the resource to remove
071         */
072        void removeOneOf(RDFResource resource);
073    
074    
075        /**
076         * Sets the values of the owl:oneOf property at this.
077         *
078         * @param resources a Collection of RDFResources
079         */
080        void setOneOf(Collection resources);
081    
082    
083        /**
084         * @deprecated use setOneOf instead
085         */
086        void setOneOfValues(Collection values);
087    }
088