This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 31242 - UML2MOF does not recognize null values for changeability
Summary: UML2MOF does not recognize null values for changeability
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-20 00:13 UTC by HolgerKnublauch
Modified: 2003-03-21 14:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HolgerKnublauch 2003-02-20 00:13:16 UTC
Poseidon does not save the changeability of attributes (if 
true), so that attribute.getChangeability() returns null. 
However, true should be the default setting, so that a 
method should be changed in Transformer.java:

    
    private void transformAttr(Attribute attr, MofClass 
container) {
        if (elements.containsKey(attr)) return;
        
        StructuralFeature mofFeature;
        if (isOfType(attr, STEREOTYPE_REFERENCE)) {
            mofFeature = mof.getReference().createReference
(attr.getName(), getAnnotation(attr), 
ScopeKindEnum.INSTANCE_LEVEL, 
VisibilityKindEnum.PUBLIC_VIS, null, true);
            fqnsToResolve.put(mofFeature, getTagValues
(attr, TAG_REFERENCED_END));
        } else {
  /* HERE */          boolean changeable = 
attr.getChangeability() == null || 
ChangeableKindEnum.CK_CHANGEABLE.equals
(attr.getChangeability());
            mofFeature = mof.getAttribute().createAttribute
(attr.getName(), getAnnotation(attr), getScope
(attr.getOwnerScope()), VisibilityKindEnum.PUBLIC_VIS, 
getMultiplicity(attr.getMultiplicity(), 
OrderingKindEnum.OK_ORDERED.equals(attr.getOrdering
()), "true".equals(getTagValue(attr, TAG_UNIQUE, null))), 
changeable, "true".equals(getTagValue(attr, 
TAG_ATTR_DERIVED, null)));
        }
        elements.put(attr, mofFeature);
        mofFeature.setContainer(container);
        mapTags(attr, mofFeature);
    }
Comment 1 Martin Matula 2003-03-21 14:52:21 UTC
true is now the default