use of com.runwaysdk.system.metadata.MdAttribute in project geoprism-registry by terraframe.
the class MasterListVersion method createMdAttributeFromAttributeType.
public static TableMetadata createMdAttributeFromAttributeType(MasterListVersion version, ServerGeoObjectType type, AttributeType attributeType, Collection<Locale> locales) {
TableMetadata metadata = new TableMetadata();
metadata.setMdBusiness(version.getMdBusiness());
createMdAttributeFromAttributeType(metadata, attributeType, type, locales);
Map<MdAttribute, MdAttribute> pairs = metadata.getPairs();
Set<Entry<MdAttribute, MdAttribute>> entries = pairs.entrySet();
for (Entry<MdAttribute, MdAttribute> entry : entries) {
MasterListAttributeGroup.create(version, entry.getValue(), entry.getKey());
}
return metadata;
}
Aggregations