![JAR search and dependency download from the Maven repository](/logo.png)
com.github.TKnudsen.ComplexDataObject.model.processors.complexDataObject.AttributeRemover Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of complex-data-object Show documentation
Show all versions of complex-data-object Show documentation
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