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 IIdType getResourceId(IBaseResource theNext) { if (getResourceToIdMap() == null) { return null; } return getResourceToIdMap().get(theNext); }
if (getResourceToIdMap().get(nextResource) != null) { ids.add(getResourceToIdMap().get(nextResource).getValue()); while (getResourceToIdMap().get(nextResource) == null) { String nextCandidate = "#" + myNextContainedId; myNextContainedId++; getResourceToIdMap().put(nextResource, new IdDt(nextCandidate));
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 IIdType getResourceId(IBaseResource theNext) { if (getResourceToIdMap() == null) { return null; } return getResourceToIdMap().get(theNext); }
public List<IBaseResource> getContainedResources() { if (getResourceToIdMap() == null) { return Collections.emptyList(); } return getResourceList(); }
if (getResourceToIdMap().get(nextResource) != null) { ids.add(getResourceToIdMap().get(nextResource).getValue()); continue; while (getResourceToIdMap().get(nextResource) == null) { String nextCandidate = "#" + myNextContainedId; myNextContainedId++; getResourceToIdMap().put(nextResource, new IdDt(nextCandidate));
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); }