
com.nedap.archie.rules.ModelReference Maven / Gradle / Ivy
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;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy