private BAG<EN> createNames(String[] strNames) {
   List<EN> names = new ArrayList<EN>();
   for (String name : strNames) {
     List<ENXP> nameParts = new ArrayList<ENXP>();
     nameParts.add(ENXPimpl.valueOf(name));
     names.add(ENimpl.valueOf(nameParts));
   }
   return new BAGjuListAdapter<EN>(names);
 }
  Person createPerson() {
    Person person = new PersonImpl();
    person.setClassCode(EntityClass.Person);

    List<ENXP> nameParts = new ArrayList<ENXP>();
    nameParts.add(ENXPimpl.valueOf("Mark"));
    person.setName(ENimpl.valueOf(nameParts));

    // Add IDs (SET<II>)
    person.setId(IIimpl.valueOf("local", "1.2.3"));

    // Set Citizens
    person.setAsCitizen(createCitizens());

    // Set Patient
    person.setAsPatient(createPatient());

    return person;
  }
Exemple #3
0
 private void flushText() {
   if (_stringBuffer != null && _stringBuffer.length() > 0) {
     _nameParts.add(ENXPimpl.valueOf(_stringBuffer.toString()));
     _stringBuffer = null;
   }
 }