public void addContained(IIdType theId, IBaseResource theResource) { if (!getResourceToIdMap().containsKey(theResource)) { getResourceToIdMap().put(theResource, theId); getResourceList().add(theResource); } }
public List<IBaseResource> getContainedResources() { if (getResourceToIdMap() == null) { return Collections.emptyList(); } return getResourceList(); }
public void addContained(IBaseResource theResource) { if (getResourceToIdMap().containsKey(theResource)) { return; } IIdType newId; if (theResource.getIdElement().isLocal()) { newId = theResource.getIdElement(); } else { newId = null; } getResourceToIdMap().put(theResource, newId); getResourceList().add(theResource); }
public void assignIdsToContainedResources() { if (getResourceList() != null) { for (IBaseResource nextResource : getResourceList()) { if (getResourceToIdMap().get(nextResource) != null) { ids.add(getResourceToIdMap().get(nextResource).getValue()); for (IBaseResource nextResource : getResourceList()) {
public void addContained(IBaseResource theResource) { if (getResourceToIdMap().containsKey(theResource)) { return; } IIdType newId; if (theResource.getIdElement().isLocal()) { newId = theResource.getIdElement(); } else { newId = null; } getResourceToIdMap().put(theResource, newId); getResourceList().add(theResource); }
public void addContained(IIdType theId, IBaseResource theResource) { if (!getResourceToIdMap().containsKey(theResource)) { getResourceToIdMap().put(theResource, theId); getResourceList().add(theResource); } }
public List<IBaseResource> getContainedResources() { if (getResourceToIdMap() == null) { return Collections.emptyList(); } return getResourceList(); }
public void assignIdsToContainedResources() { if (getResourceList() != null) { for (IBaseResource nextResource : getResourceList()) { if (getResourceToIdMap().get(nextResource) != null) { ids.add(getResourceToIdMap().get(nextResource).getValue()); for (IBaseResource nextResource : getResourceList()) {