org.etlunit.parser.ETLTestMethodImpl Maven / Gradle / Ivy
package org.etlunit.parser;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class ETLTestMethodImpl extends ETLTestAnnotatedImpl implements ETLTestMethod
{
private final String className;
private final method_type type;
private final ETLTestClass ETLTestClass;
private final List operations = new ArrayList();
private final List operationsPub = Collections.unmodifiableList(operations);
public ETLTestMethodImpl(String name, method_type mt, ETLTestClass cls)
{
className = name;
type = mt;
ETLTestClass = cls;
}
public ETLTestMethodImpl(String name, method_type mt, ETLTestClass cls, Token t)
{
super(t);
className = name;
type = mt;
ETLTestClass = cls;
}
public String getName()
{
return className;
}
@Override
public String getQualifiedName()
{
return ETLTestClass.getQualifiedName() + "." + getName();
}
public method_type getMethodType()
{
return type;
}
public void addOperation(ETLTestOperation op)
{
operations.add(op);
}
public List getOperations()
{
return operationsPub;
}
public boolean requiresPurge()
{
return !hasAnnotation("@DoNotPurge");
}
public ETLTestClass getTestClass()
{
return ETLTestClass;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy