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

com.bladecoder.engine.actions.AbstractControlAction Maven / Gradle / Ivy

The newest version!
package com.bladecoder.engine.actions;

import java.util.List;

public abstract class AbstractControlAction implements Action {
	
	@ActionProperty(required = true)
	protected String caID;

	protected int skipControlIdBlock(List actions, int ip) {
		final String caID = getControlActionID();

		do {
			ip++;
		} while (!(actions.get(ip) instanceof AbstractControlAction)
				|| !((AbstractControlAction) actions.get(ip)).getControlActionID().equals(caID));

		return ip;
	}

	public String getControlActionID() {
		return caID;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy