Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 Michael Ruflin, Andr´┐Ż Locher, Claudia von Bastian. This file is part of Tatool. Tatool is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Tatool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Tatool. If not, see <http://www.gnu.org/licenses/>. /
package ch.tatool.core.element;
Element that holds two child elements, the execution of which is alternated when a special ExecutionOutcome is returned by a containing element execution.

Author(s):
Michael Ruflin
public class CompoundElement extends AbstractElement {
	private List<Elementchildren;
	public CompoundElement() {
		super("comp");
	}
	public Element getPrimary() {
		return ;
	}
	public void setPrimary(Element primary) {
		this. = primary;
		assignParent(thisprimary);
	}
	public Element getSecondary() {
		return ;
	}
	public void setSecondary(Element secondary) {
		this. = secondary;
		assignParent(thissecondary);
	}

This returns a list containing primary and secondary element.
	public List<ElementgetChildren() {
		return ;
	}

Updates the children object.
	private void updateChildren() {
		if ( != null) {
		}
		if ( != null) {
		}
	}

Always returns null.
		return null;
	}
New to GrepCode? Check out our FAQ X