fr.vergne.pester.definition.FieldDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pester-core Show documentation
Show all versions of pester-core Show documentation
Implementation of the Pester library.
The newest version!
package fr.vergne.pester.definition;
import java.util.Optional;
import fr.vergne.pester.model.Field;
import fr.vergne.pester.options.Mutability;
import fr.vergne.pester.options.Scope;
import fr.vergne.pester.options.Visibility;
public class FieldDefinition implements InstanciableDefinition> {
private final Field instance;
private final Optional visibility;
private final Optional mutability;
private final Optional scope;
public FieldDefinition(Class pojoClass, String name, Optional visibility,
Optional mutability, Optional scope) {
this.instance = new Field<>(pojoClass, name);
this.visibility = visibility;
this.mutability = mutability;
this.scope = scope;
}
@Override
public Field getInstance() {
return instance;
}
public Optional getVisibility() {
return visibility;
}
public Optional getMutability() {
return mutability;
}
public Optional getScope() {
return scope;
}
}