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

com.nedap.archie.rules.ModelReference Maven / Gradle / Ivy

There is a newer version: 3.12.0
Show newest version
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