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

com.ecfeed.core.operations.ChoiceOperationRemoveLabels Maven / Gradle / Ivy

/*******************************************************************************
 *
 * Copyright (c) 2016 ecFeed AS.                                                
 * All rights reserved. This program and the accompanying materials              
 * are made available under the terms of the Eclipse Public License v1.0         
 * which accompanies this distribution, and is available at                      
 * http://www.eclipse.org/legal/epl-v10.html 
 *  
 *******************************************************************************/

package com.ecfeed.core.operations;

import java.util.Collection;

import com.ecfeed.core.model.ChoiceNode;

public class ChoiceOperationRemoveLabels extends BulkOperation {

	public ChoiceOperationRemoveLabels(ChoiceNode target, Collection labels) {
		super(OperationNames.REMOVE_PARTITION_LABELS, false, target, target);
		for(String label : labels){
			if(target.getInheritedLabels().contains(label) == false){
				addOperation(new ChoiceOperationRemoveLabel(target, label));
			}
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy