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

com.github.TKnudsen.ComplexDataObject.model.processors.complexDataObject.AttributeRemover Maven / Gradle / Ivy

Go to download

A library that models real-world objects in Java, referred to as ComplexDataObjects. Other features: IO and preprocessing of ComplexDataObjects.

The newest version!
package com.github.TKnudsen.ComplexDataObject.model.processors.complexDataObject;

import java.util.List;

import com.github.TKnudsen.ComplexDataObject.data.complexDataObject.ComplexDataContainer;
import com.github.TKnudsen.ComplexDataObject.data.complexDataObject.ComplexDataObject;

/**
 * 

* Title: AttributeRemover *

* *

* Description: *

* *

* Copyright: Copyright (c) 2016 *

* * @author Juergen Bernard * @version 1.01 */ public class AttributeRemover implements IComplexDataObjectProcessor { private String attributeString; public AttributeRemover(String attributeString) { this.attributeString = attributeString; } @Override public void process(ComplexDataContainer container) { if (container == null) return; container.remove(attributeString); } @Override public void process(List data) { for (ComplexDataObject object : data) object.removeAttribute(attributeString); } public String getAttributeString() { return attributeString; } public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @Override public DataProcessingCategory getPreprocessingCategory() { return DataProcessingCategory.DATA_REDUCTION; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy