use of com.runwaysdk.system.metadata.MdAttributeLocalText in project geoprism-registry by terraframe.
the class LocalizeListMetadataFieldsPatch method defineAttributes.
private void defineAttributes() {
for (int i = 0; i < newAttrs.length; ++i) {
String newAttrName = newAttrs[i];
MdAttributeConcreteDAO oldMdAttr = (MdAttributeConcreteDAO) MdAttributeConcreteDAO.getByKey(MasterList.CLASS + "." + oldAttrs[i]);
MdAttributeLocalText mdAttr = new MdAttributeLocalText();
mdAttr.setDefiningMdClass(masterlistMd);
mdAttr.setAttributeName(newAttrName);
mdAttr.getDisplayLabel().setLocaleMap(oldMdAttr.getDisplayLabels());
mdAttr.apply();
}
}
Aggregations