/** * Compares the given string to the string representation of this URI. In many cases it is preferable to use this * instead of the standard {@link #equals(Object)} method, since that method returns <code>false</code> unless it is * passed an instance of {@link UriType} */ public boolean equals(String theString) { return StringUtils.equals(getValueAsString(), theString); }
/** * Creates an ID based on a given URL */ public IdType(UriType theUrl) { setValue(theUrl.getValueAsString()); }
public org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent convertElementDefinitionTypeComponent(org.hl7.fhir.instance.model.ElementDefinition.TypeRefComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent tgt = new org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent(); copyElement(src, tgt); tgt.setCodeElement(convertCodeToUri(src.getCodeElement())); for (org.hl7.fhir.instance.model.UriType t : src.getProfile()) if (src.hasCode() && "Reference".equals(src.getCode())) tgt.setTargetProfile(t.getValueAsString()); else tgt.setProfile(t.getValue()); for (org.hl7.fhir.instance.model.Enumeration<org.hl7.fhir.instance.model.ElementDefinition.AggregationMode> t : src.getAggregation()) tgt.addAggregation(convertAggregationMode(t.getValue())); return tgt; }
/** * Compares the given string to the string representation of this URI. In many cases it is preferable to use this * instead of the standard {@link #equals(Object)} method, since that method returns <code>false</code> unless it is * passed an instance of {@link UriType} */ public boolean equals(String theString) { return StringUtils.equals(getValueAsString(), theString); }
/** * Creates an ID based on a given URL */ public IdType(UriType theUrl) { setValue(theUrl.getValueAsString()); }
public org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent convertElementDefinitionTypeComponent(org.hl7.fhir.instance.model.ElementDefinition.TypeRefComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent tgt = new org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent(); copyElement(src, tgt); tgt.setCodeElement(convertCodeToUri(src.getCodeElement())); for (org.hl7.fhir.instance.model.UriType t : src.getProfile()) if (src.hasCode() && "Reference".equals(src.getCode())) tgt.setTargetProfile(t.getValueAsString()); else tgt.setProfile(t.getValue()); for (org.hl7.fhir.instance.model.Enumeration<org.hl7.fhir.instance.model.ElementDefinition.AggregationMode> t : src.getAggregation()) tgt.addAggregation(convertAggregationMode(t.getValue())); return tgt; }