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

dev.galasa.framework.spi.AnnotatedField Maven / Gradle / Ivy

There is a newer version: 0.37.0
Show newest version
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.framework.spi;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.List;

import javax.validation.constraints.NotNull;

/**
 * Represents annotated fields that the AbstractManager finds on behalf of
 * Managers
 * 
 *  
 *
 */
public class AnnotatedField {

    /**
     * The annotated field
     */
    private final Field            field;
    /**
     * All the annotations related to the field
     */
    private final List annotations;

    /**
     * @param field       The annotated field
     * @param annotations All annotations on the field
     */
    public AnnotatedField(@NotNull Field field, @NotNull List annotations) {
        this.field = field;
        this.annotations = annotations;
    }

    /**
     * @return The annotated field
     */
    public Field getField() {
        return field;
    }

    /**
     * @return All annotations on the field
     */
    public List getAnnotations() {
        return annotations;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy