how to set custom enum attributes of DNG artifacts using extended properties?
Hello,
Im trying to set the custom enum value of a DNG artifact using extended properties of a requirement object. But im getting a 403 forbidden error. Im able to set the string attributes using the same code but not enum attributes. Any hints on this?
QName targetQName = new QName(namespaceURI, localPart, prefix);
Map<QName, Object> reqMap = requirement.getExtendedProperties();
reqMap.put(targetQName, “rdf uri of enum value”);
requirement.setExtendedProperties(reqMap);
Accepted answer
Finally I found what was missing. The value should be the URI object as mentioned below
Map<QName, Object> reqMap = requirement.getExtendedProperties();
reqMap.put(targetQName, new URI( “rdf uri of enum value”));
requirement.setExtendedProperties(reqMap);
this updates the enum values using extended properties.
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 20 '22, 3:39 a.m.thimmaiah aa
Oct 20 '22, 5:20 a.m.Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 20 '22, 7:06 a.m.Shailee Sinha
FORUM ADMINISTRATOR Nov 11 '22, 2:16 a.m.