com.nedap.archie.rm.datavalues.DvEHRURI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openehr-rm Show documentation
Show all versions of openehr-rm Show documentation
An implementation of the openehr reference model
package com.nedap.archie.rm.datavalues;
import com.nedap.archie.definitions.OpenEhrDefinitions;
import com.nedap.archie.rminfo.Invariant;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import java.net.URI;
/**
* Created by pieter.bos on 04/11/15.
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DV_EHR_URI")
public class DvEHRURI extends DvURI {
public DvEHRURI() {
}
public DvEHRURI(URI value) {
super(value);
}
/**
* Creates a DvEHRURI from a URI String representation
*
* @param uri
*/
public DvEHRURI(String uri) {
super(uri);
}
@Invariant("Scheme_valid")
public boolean schemeValid() {
return getValue() == null || (getValue().getScheme() != null && getValue().getScheme().equalsIgnoreCase(OpenEhrDefinitions.EHR_SCHEME));
}
}