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

org.webharvest.definition.ExitDef Maven / Gradle / Ivy

The newest version!
package org.webharvest.definition;

import org.webharvest.runtime.processors.Processor;

/**
 * Definition of exit processor.
 */
public class ExitDef extends WebHarvestPluginDef {

    private String condition;
    private String message;

    public ExitDef(XmlNode xmlNode, Class processorClass) {
        super(xmlNode, processorClass);

        this.condition = xmlNode.getAttribute("condition");
        this.message = xmlNode.getAttribute("message");
    }

    public String getCondition() {
        return condition;
    }

    public String getMessage() {
        return message;
    }

    public String getShortElementName() {
        return "exit";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy