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

com.fnklabs.draenei.orm.FieldMetadata Maven / Gradle / Ivy

There is a newer version: 0.8.3
Show newest version
package com.fnklabs.draenei.orm;


import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;

class FieldMetadata {
    private PropertyDescriptor propertyDescriptor;
    private Class type;
    private String name;
    private Method readMethod;
    private Method writeMethod;

    public FieldMetadata(PropertyDescriptor propertyDescriptor, Class type, String name) {
        this.propertyDescriptor = propertyDescriptor;

        readMethod = propertyDescriptor.getReadMethod();
        writeMethod = propertyDescriptor.getWriteMethod();

        this.type = type;
        this.name = name;
    }

    public Method getReadMethod() {
        return readMethod;
    }

    public Method getWriteMethod() {
        return writeMethod;
    }

    private PropertyDescriptor getPropertyDescriptor() {
        return propertyDescriptor;
    }

    public Class getType() {
        return type;
    }

    public String getName() {
        return name;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy