UmlSequenceDiagramStereotype.class.php

Go to the documentation of this file.
00001 <?php
00013 class UmlSequenceDiagramStereotype
00014 {
00023     protected $booDefault;
00024 
00030     protected $strName;
00031 
00038     protected $strImage;
00039 
00046     protected static $arrInstances = array();
00047 
00048     public static function addStereotype( UmlSequenceDiagramStereotype $objStereotype )
00049     {
00050         self::$arrInstances[ $objStereotype->getName()  ] = $objStereotype;
00051         return $objStereotype;
00052     }
00053 
00060     public static function getStereotypeByName( $strName )
00061     {
00062         if( !isset( self::$arrInstances[ $strName ] ) )
00063         {
00064             throw new UmlSequenceDiagramException( 'unknow uml sequence diagram stereotype ' . $strName );
00065         }
00066         return self::$arrInstances[ $strName  ];
00067     }
00068 
00077     public function setDefault( $booDefault )
00078     {
00079         $this->booDefault = $booDefault;
00080         return $this;
00081     }
00082 
00089     public function getDefault()
00090     {
00091         return $this->booDefault;
00092     }
00093 
00101     public function setName( $strName )
00102     {
00103         $this->strName = $strName;
00104         return $this;
00105     }
00106 
00114     public function getName()
00115     {
00116         return $this->strName;
00117     }
00118 
00127     public function setImage( $strImage )
00128     {
00129         $this->strImage = $strImage;
00130         return $this;
00131     }
00132 
00140     public function getImage()
00141     {
00142         return $this->strImage;
00143     }
00144 }
00145 ?>

Generated on Sat Apr 7 14:19:10 2012 for CodeToDiagram by  doxygen 1.5.9