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

io.toolisticon.beanbuilder.processor.Attribute Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package io.toolisticon.beanbuilder.processor;


import io.toolisticon.annotationprocessortoolkit.tools.BeanUtils;

public class Attribute {

    private final BeanUtils.AttributeResult wrappedAttribute;

    public Attribute(BeanUtils.AttributeResult wrappedAttribute) {
        this.wrappedAttribute = wrappedAttribute;
    }

    public String getFieldName() {
        return wrappedAttribute.getFieldName();
    }

    public String getCCFieldName () {
        return wrappedAttribute.getFieldName().substring(0,1).toUpperCase() + (wrappedAttribute.getFieldName().length() > 1 ? wrappedAttribute.getFieldName().substring(1) : "");
    }

    public String getFQTypeName () {
        return wrappedAttribute.getFieldTypeElement().getQualifiedName().toString();
    }

    public String getShortTypeName () {
        return wrappedAttribute.getFieldTypeElement().getSimpleName().toString();
    }

    public BeanUtils.AttributeResult getWrappedAttribute() {
        return wrappedAttribute;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy