Package ca.uhn.fhir.context

Examples of ca.uhn.fhir.context.RuntimeElemContainedResources.newInstance()


      case CONTAINED_RESOURCES: {
        RuntimeElemContainedResources targetElem = (RuntimeElemContainedResources) target;
        List<? extends IElement> values = child.getAccessor().getValues(myInstance);
        ContainedDt newDt;
        if (values == null || values.isEmpty() || values.get(0) == null) {
          newDt = targetElem.newInstance();
          child.getMutator().addValue(myInstance, newDt);
        } else {
          newDt = (ContainedDt) values.get(0);
        }
        ContainedResourcesState state = new ContainedResourcesState(getPreResourceState());
View Full Code Here


      case CONTAINED_RESOURCES: {
        RuntimeElemContainedResources targetElem = (RuntimeElemContainedResources) target;
        List<? extends IElement> values = child.getAccessor().getValues(myInstance);
        ContainedDt newDt;
        if (values == null || values.isEmpty() || values.get(0) == null) {
          newDt = targetElem.newInstance();
          child.getMutator().addValue(myInstance, newDt);
        } else {
          newDt = (ContainedDt) values.get(0);
        }
        ContainedResourcesState state = new ContainedResourcesState(getPreResourceState());
View Full Code Here

      case CONTAINED_RESOURCES: {
        RuntimeElemContainedResources targetElem = (RuntimeElemContainedResources) target;
        List<? extends IElement> values = child.getAccessor().getValues(myInstance);
        ContainedDt newDt;
        if (values == null || values.isEmpty() || values.get(0) == null) {
          newDt = targetElem.newInstance();
          child.getMutator().addValue(myInstance, newDt);
        } else {
          newDt = (ContainedDt) values.get(0);
        }
        ContainedResourcesState state = new ContainedResourcesState(getPreResourceState());
View Full Code Here

      case CONTAINED_RESOURCES: {
        RuntimeElemContainedResources targetElem = (RuntimeElemContainedResources) target;
        List<? extends IElement> values = child.getAccessor().getValues(myInstance);
        ContainedDt newDt;
        if (values == null || values.isEmpty() || values.get(0) == null) {
          newDt = targetElem.newInstance();
          child.getMutator().addValue(myInstance, newDt);
        } else {
          newDt = (ContainedDt) values.get(0);
        }
        ContainedResourcesState state = new ContainedResourcesState(getPreResourceState());
View Full Code Here

      case CONTAINED_RESOURCES: {
        RuntimeElemContainedResources targetElem = (RuntimeElemContainedResources) target;
        List<? extends IElement> values = child.getAccessor().getValues(myInstance);
        ContainedDt newDt;
        if (values == null || values.isEmpty() || values.get(0) == null) {
          newDt = targetElem.newInstance();
          child.getMutator().addValue(myInstance, newDt);
        } else {
          newDt = (ContainedDt) values.get(0);
        }
        ContainedResourcesState state = new ContainedResourcesState(getPreResourceState());
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.