All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.fhir.utilities.CanonicalPair Maven / Gradle / Ivy

There is a newer version: 6.4.1
Show newest version
package org.hl7.fhir.utilities;

public class CanonicalPair {

  private String url;
  private String version;
  
  public CanonicalPair(String target) {
    if (target != null && target.contains("|")) {
      this.url = target.substring(0, target.indexOf("|"));
      this.version = target.substring(target.indexOf("|")+1);     
    } else {
      this.url = target;
      this.version = null;
    }
  }

  public String getUrl() {
    return url;
  }

  public String getVersion() {
    return version;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy