Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [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