跳转到主要内容

单击提交则表示您同意developerWorks 的条款和条件。 查看条款和条件.

当您初次登录到 developerWorks 时,将会为您创建一份概要信息。您在 developerWorks 概要信息中选择公开的信息将公开显示给其他人,但您可以随时修改这些信息的显示状态。您的姓名(除非选择隐藏)和昵称将和您在 developerWorks 发布的内容一同显示。

所有提交的信息确保安全。

  • 关闭 [x]

当您初次登录到 developerWorks 时,将会为您创建一份概要信息,您需要指定一个昵称。您的昵称将和您在 developerWorks 发布的内容显示在一起。

昵称长度在 3 至 31 个字符之间。 您的昵称在 developerWorks 社区中必须是唯一的,并且出于隐私保护的原因,不能是您的电子邮件地址。

单击提交则表示您同意developerWorks 的条款和条件。 查看条款和条件.

所有提交的信息确保安全。

  • 关闭 [x]

XMI and UML combine to drive product development

Ideogramic suite demonstrates UML-oriented XML processing

Return to article


Listing 2. ModelLoader source
        
        # - Classifier tags
        body ModelLoader::loadClassifierTags {tag element} {
            loadNamespaceTags $tag $element
            loadGeneralizableElementTags $tag $element
            # ...
            ::DOM::scanChildren $tag {
                "Foundation.Core.Classifier.feature" {
                    ::DOM::scanChildren $node {
                        "Foundation.Core.Attribute" {
                            $element addAttribute [loadAttribute $node]
                        }
                        "Foundation.Core.Operation" {
                            $element addOperation [loadOperation $node]
                        }
                        default {
                            $loader warn "Unknown type of feature
([$node nodeName])\n"
                        }
                    }
                }
            }
            set currentNamespace $oldNamespace
        }
        # - Class tags
        body ModelLoader::loadClassTags {tag element} {
            loadClassifierTags $tag $element
            ::DOM::scanChildren $tag {
                "Foundation.Core.Class.isActive" {
                    $element configure -isActive [oneZero [$node getAttribute
        "xmi.value"]]
                }
            }
        }
      

Return to article