com.nedap.archie.rules.ModelReference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aom Show documentation
Show all versions of aom Show documentation
An OpenEHR archetype object model implementation, plus parser
package com.nedap.archie.rules;
/**
* Created by pieter.bos on 27/10/15.
*/
public class ModelReference extends Leaf {
/**
* The path can be prefixed with a variable, referencing another path.
* For example 'every $event in /data/events satisfies $event/value > 5'
*/
private String variableReferencePrefix;
private String path;
public ModelReference() {
}
public String getVariableReferencePrefix() {
return variableReferencePrefix;
}
public ModelReference(String path) {
this.path = path;
}
public ModelReference(String variableReferencePrefix, String path) {
this.variableReferencePrefix = variableReferencePrefix;
this.path = path;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String toString() {
if(variableReferencePrefix == null) {
return path;
} else {
return "$" + variableReferencePrefix + path;
}
}
public void setVariableReferencePrefix(String variableReferencePrefix) {
this.variableReferencePrefix = variableReferencePrefix;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy