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

com.automationrockstars.gunter.events.environment.impl.EnvironmentBrokenImpl Maven / Gradle / Ivy

The newest version!
/*
 * 
 */

package com.automationrockstars.gunter.events.environment.impl;

import com.automationrockstars.gunter.EventType;
import com.automationrockstars.gunter.events.environment.EnvironmentBroken;

public class EnvironmentBrokenImpl extends AbstractEnvironmentImpl implements EnvironmentBroken {

    private static final String CAUSE = "CAUSE";

    public EnvironmentBrokenImpl(String parentId, String name, String cause) {
        super(parentId, name);
        setCause(cause);
    }

    @Override
    public String getCause() {
        return getAttribute(CAUSE);
    }

    public void setCause(String cause) {
        attributes().put(CAUSE, cause);
    }

    @Override
    public EventType getType() {
        return EventType.ENVIRONMENT_BROKEN;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy