Examples of toProfile()


Examples of ca.uhn.fhir.context.RuntimeResourceDefinition.toProfile()

  public Profile getProfileById(@IdParam IdDt theId) {
    RuntimeResourceDefinition retVal = myContext.getResourceDefinitionById(theId.getValue());
    if (retVal==null) {
      return null;
    }
    return retVal.toProfile();
  }

  @Search()
  public List<Profile> getAllProfiles() {
    List<RuntimeResourceDefinition> defs = new ArrayList<RuntimeResourceDefinition>(myContext.getResourceDefinitions());
View Full Code Here

Examples of ca.uhn.fhir.context.RuntimeResourceDefinition.toProfile()

  public Profile getProfileById(@IdParam IdDt theId) {
    RuntimeResourceDefinition retVal = myContext.getResourceDefinitionById(theId.getValue());
    if (retVal==null) {
      return null;
    }
    return retVal.toProfile();
  }

  @Search()
  public List<Profile> getAllProfiles() {
    List<RuntimeResourceDefinition> defs = new ArrayList<RuntimeResourceDefinition>(myContext.getResourceDefinitions());
View Full Code Here

Examples of ca.uhn.fhir.context.RuntimeResourceDefinition.toProfile()

  public Profile getProfileById(@IdParam IdDt theId) {
    RuntimeResourceDefinition retVal = myContext.getResourceDefinitionById(theId.getValue());
    if (retVal==null) {
      return null;
    }
    return retVal.toProfile();
  }

  @Search()
  public List<Profile> getAllProfiles() {
    List<RuntimeResourceDefinition> defs = new ArrayList<RuntimeResourceDefinition>(myContext.getResourceDefinitions());
View Full Code Here

Examples of io.fabric8.api.mxbean.ProfileState.toProfile()

    public void testPlainGetProfile() throws Exception {
        Object[] params = new Object[] {"1.0", "prfB"};
        String[] signature = new String[]{ String.class.getName(), String.class.getName()};
        CompositeData cdata = (CompositeData) server.invoke(ProfileManagement.OBJECT_NAME, "getProfile", params, signature);
        ProfileState prfB = (ProfileState) OpenTypeGenerator.fromOpenData(cdata.getCompositeType(), ProfileState.class.getClassLoader(), cdata);
        Assert.assertEquals(version10.getProfile("prfB"), prfB.toProfile());
    }

    @Test
    public void testProfileStateRoundTrip() throws Exception {
        CompositeType ctype = getProfileStateType();
View Full Code Here

Examples of io.fabric8.api.mxbean.ProfileState.toProfile()

            // getProfile
            Assert.assertEquals(prfA, getProxy().getProfile("1.0", "prfA"));

            // updateProfile
            prfA = getProxy().getProfile("1.0", "prfA");
            pbA10 = ProfileBuilder.Factory.createFrom(prfA.toProfile());
            pbA10.addConfiguration("pidB", "keyB", "valB");
            prfA = getProxy().updateProfile(new ProfileState(pbA10.getProfile()));
            Assert.assertEquals("prfA", prfA.getId());
            Assert.assertEquals("1.0", prfA.getVersion());
            Assert.assertTrue(prfA.getAttributes().isEmpty());
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.