Sha256: 71746119c7ea6f4e87abc6a38abceedd29856cf535fad54da692a9fb7f397725
Contents?: true
Size: 690 Bytes
Versions: 179
Compression:
Stored size: 690 Bytes
Contents
def read_P28_entity_instances(p28doc,m) uos = p28doc.root for entity in uos.elements.to_a() id = entity.attribute('id') if entity.name == 'Person' r = EMP::Person.new m.model_elements.push r r.putP28id(id.to_s) end if entity.name == 'Organization' r = EMP::Organization.new m.model_elements.push r r.putP28id(id.to_s) end if entity.name == 'PersonOrganizationRelationship' r = EMP::PersonOrganizationRelationship.new m.model_elements.push r r.putP28id(id.to_s) end if entity.name == 'Employment' r = EMP::Employment.new m.model_elements.push r r.putP28id(id.to_s) end end end
Version data entries
179 entries across 179 versions & 1 rubygems