Beispiel #1
0
 protected function getDescription(PHP_UML_Metamodel_Stereotype $s, $annotatedElement = '')
 {
     $tag = PHP_UML_Metamodel_Helper::getStereotypeTag($s, 'description');
     if (!is_null($tag)) {
         return nl2br(htmlspecialchars($tag->value));
     } else {
         return '';
     }
 }
Beispiel #2
0
 public function getComment(PHP_UML_Metamodel_Stereotype $s, $annotatedElement = '')
 {
     $tag = PHP_UML_Metamodel_Helper::getStereotypeTag($s, 'description');
     if (!is_null($tag)) {
         return $this->getTaggedValue($tag->value, self::getUID('Tag_documentation'));
     } else {
         return '';
     }
 }
Beispiel #3
0
 public function getComment(PHP_UML_Metamodel_Stereotype $s, $annotatedElement = '')
 {
     $tag = PHP_UML_Metamodel_Helper::getStereotypeTag($s, 'description');
     if (!is_null($tag)) {
         return '<ownedComment xmi:type="uml:Comment"
             xmi:id="' . self::getUID() . '" annotatedElement="' . $annotatedElement . '"><body>' . htmlspecialchars($tag->value) . '</body></ownedComment>';
     } else {
         return '';
     }
 }