Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ClassifierRole.hpp

Go to the documentation of this file.
00001 /* 00002 * Copyright (C) 2004 Andrew Sutton 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to: 00016 * 00017 * The Free Software Foundation, Inc. 00018 * 59 Temple Place, Suite 330 00019 * Boston, MA 02111-1307 USA 00020 * 00021 * Contact: 00022 * Andrew Sutton asutton@cs.kent.edu 00023 */ 00024 00025 #ifndef UML_CLASSIFIERROLE_HPP 00026 #define UML_CLASSIFIERROLE_HPP 00027 00028 #include <UML/Classifier.hpp> 00029 00030 namespace UML 00031 { 00032 // forward declarations 00033 class ClassifierRole; 00034 class ClassifierRoleImpl; 00035 class Multiplicity; 00036 class Classifier; 00037 class Feature; 00038 class ModelElement; 00039 class Instance; 00040 00041 class ClassifierRole : virtual public UML::Classifier 00042 { 00043 public: 00044 typedef OMF::BasicClass<ClassifierRoleImpl> Proxy; 00045 00046 ClassifierRole(); 00047 virtual ~ClassifierRole(); 00048 00049 Multiplicity *multiplicity(); 00050 void setMultiplicity(Multiplicity *value); 00051 void clearMultiplicity(); 00052 00053 const OMF::Set &base(); 00054 void addBase(Classifier *value); 00055 void removeBase(Classifier *value); 00056 void clearBase(); 00057 00058 const OMF::Set &availableFeature(); 00059 void addAvailableFeature(Feature *value); 00060 void removeAvailableFeature(Feature *value); 00061 void clearAvailableFeature(); 00062 00063 const OMF::Set &availableContents(); 00064 void addAvailableContents(ModelElement *value); 00065 void removeAvailableContents(ModelElement *value); 00066 void clearAvailableContents(); 00067 00068 const OMF::Set &conformingInstance(); 00069 void addConformingInstance(Instance *value); 00070 void removeConformingInstance(Instance *value); 00071 void clearConformingInstance(); 00072 00073 private: 00074 Multiplicity *_multiplicity; 00075 OMF::Set _base; 00076 OMF::Set _availableFeature; 00077 OMF::Set _availableContents; 00078 OMF::Set _conformingInstance; 00079 }; 00080 00081 00082 struct ClassifierRoleImpl : virtual public UML::ClassifierRole 00083 { 00084 ClassifierRoleImpl() : 00085 OMF::ModelObject( 00086 "UML.ClassifierRole", 00087 &ClassifierRole::Proxy::instance(), 00088 &UMLPackage::instance()), 00089 Element(), 00090 ModelElement(), 00091 GeneralizableElement(), 00092 Namespace(), 00093 Classifier(), 00094 ClassifierRole() 00095 {} 00096 00097 virtual ~ClassifierRoleImpl() 00098 {} 00099 }; 00100 } 00101 00102 #endif

Generated on Fri Sep 10 13:07:32 2004 for OpenModelingFramework by doxygen 1.3.8