Examples of addStructure()


Examples of ca.uhn.fhir.model.dstu.resource.Profile.addStructure()

      }
    });

    // Scan for children
    retVal.setName(getName());
    Structure struct = retVal.addStructure();
    LinkedList<String> path = new LinkedList<String>();

    StructureElement element = struct.addElement();
    element.getDefinition().setMin(1);
    element.getDefinition().setMax("1");
View Full Code Here

Examples of ca.uhn.fhir.model.dstu.resource.Profile.addStructure()

      }
    });

    // Scan for children
    retVal.setName(getName());
    Structure struct = retVal.addStructure();
    LinkedList<String> path = new LinkedList<String>();

    StructureElement element = struct.addElement();
    element.getDefinition().setMin(1);
    element.getDefinition().setMax("1");
View Full Code Here

Examples of ca.uhn.fhir.model.dstu.resource.Profile.addStructure()

      }
    });

    // Scan for children
    retVal.setName(getName());
    Structure struct = retVal.addStructure();
    LinkedList<String> path = new LinkedList<String>();

    StructureElement element = struct.addElement();
    element.getDefinition().setMin(1);
    element.getDefinition().setMax("1");
View Full Code Here

Examples of ca.uhn.fhir.model.dstu.resource.Profile.addStructure()

      }
    });

    // Scan for children
    retVal.setName(getName());
    Structure struct = retVal.addStructure();
    LinkedList<String> path = new LinkedList<String>();

    StructureElement element = struct.addElement();
    element.getDefinition().setMin(1);
    element.getDefinition().setMax("1");
View Full Code Here

Examples of ca.uhn.fhir.model.dstu.resource.Profile.addStructure()

      }
    });

    // Scan for children
    retVal.setName(getName());
    Structure struct = retVal.addStructure();
    LinkedList<String> path = new LinkedList<String>();

    StructureElement element = struct.addElement();
    element.getDefinition().setMin(1);
    element.getDefinition().setMax("1");
View Full Code Here

Examples of it.hotel.model.facility.Facility.addStructure()

    Structure structure = (Structure) addStructure();
   
    Facility f = new Facility();
    f.setCode("SWIMMING");
    f.setDescription("Has a swimming pool");
    f.addStructure(structure);
    facilityRawManager.add(f);
    Facility fTest = (Facility) facilityRawManager.get(f.getId());
    Set<Structure> structures = (Set<Structure>) fTest.getStructures();
    assertEquals(1,structures.size());
    Structure sTest = structures.iterator().next();
View Full Code Here

Examples of it.hotel.model.facility.Facility.addStructure()

  public void testFacility() throws Exception {
    Hotel hotel = addHotel("it");
    Facility facility = new Facility();
    facility.setCode("Swimming Pool");
    hotel.addFacility(facility);
    facility.addStructure(hotel);
    localizedHotelManager.add(hotel);
    Hotel sameHotel = (Hotel) localizedHotelManager.get(hotel.getId());
    assertEquals(1, sameHotel.getFacilities().size());
    Facility sameFacility = (Facility) sameHotel.getFacilities().iterator().next();
    assertEquals("Swimming Pool", sameFacility.getCode());
View Full Code Here

Examples of it.hotel.model.facility.Facility.addStructure()

  @Transactional(readOnly = true, propagation = Propagation.REQUIRED)
  public Collection<Facility> getFacilitiesForStructure(int structureId) {
    Structure structure = new Structure();
    structure.setId(structureId);
    Facility facility = new Facility();
    facility.addStructure(structure);
    return searchByExample(facility);
  }

  @Resource(name="structureRawManager")
  public void setStructureManager(IStructureManager structureManager) {
View Full Code Here

Examples of org.jitterbit.integration.client.ldap.ui.SelectedObjectStructures.addStructure()

            @Override
            public void structuresRetrieved(ObjectClassStructure[] retrieved) {
                SelectedObjectStructures structures = new SelectedObjectStructures(classes);
                for (ObjectClassStructure struct : retrieved) {
                    structures.addStructure(struct.getOid(), struct);
                }
                resultHandler.handle(structures);
            }

            @Override
View Full Code Here

Examples of org.jitterbit.integration.client.ldap.ui.SelectedObjectStructures.addStructure()

            // Happens if there is an error on the server side, e.g. the user credentials
            // specified in the LDAP target are wrong
            return null;
        }
        for (ObjectClassStructure struct : structs) {
            structures.addStructure(struct.getOid(), struct);
        }
        return structures;
    }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.