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

org.hisp.dhis.rules.models.RuleEffects Maven / Gradle / Ivy

package org.hisp.dhis.rules.models;

import java.util.List;

public class RuleEffects
{

    private TrackerObjectType trackerObjectType;

    private String trackerObjectUid;

    private List ruleEffects;

    public RuleEffects( TrackerObjectType trackerObjectType, String trackerObjectUid,
        List ruleEffects )
    {
        this.trackerObjectType = trackerObjectType;
        this.trackerObjectUid = trackerObjectUid;
        this.ruleEffects = ruleEffects;
    }

    public TrackerObjectType getTrackerObjectType()
    {
        return trackerObjectType;
    }

    public String getTrackerObjectUid()
    {
        return trackerObjectUid;
    }

    public List getRuleEffects()
    {
        return ruleEffects;
    }

    public boolean isEnrollment(){
        return this.trackerObjectType == TrackerObjectType.ENROLLMENT;
    }

    public boolean isEvent(){
        return this.trackerObjectType == TrackerObjectType.EVENT;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy