Overridden Properties By Pattern
Getting Overridden Properties by Pattern
A quick Rhapsody API tip since this particular function is undocumented:
getOverriddenPropertiesByPattern (String, int, int)
Takes three arguments:
- String pattern
- int localyOverridenOnly - not my spelling mistake that is exactly how it appears in the JavaDoc :)
- int withDefaultValues
Pattern
This string ahould be in the form Subject.Metaclass.Pattern but any 2 of the three may be omitted, for example you can use:
"General.." to get all overridden properties with a subject of General
".Model." to get all overridden properties with a metaclass of Model
You get the idea !
LocalyOverridenOnly
Works as expected - setting this to 0 returns overridden, setting it to 1 returns locally overridden.
With Default Values
Does not work at all how you expect. Setting this to 1 makes the function ignore the pattern entirely and return all overridden properties - with their current value (not their default one).