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

io.github.yedaxia.apidocs.codegenerator.model.FieldModel Maven / Gradle / Ivy

There is a newer version: 1.4.4
Show newest version
package io.github.yedaxia.apidocs.codegenerator.model;

import io.github.yedaxia.apidocs.codegenerator.provider.DocFieldHelper;

/**
 * Created by Darcy https://yedaxia.github.io/
 */
public class FieldModel {

    private String remoteFieldName;
    private String caseFieldName;
    private String fieldName;
    private String fieldType;
    private String comment;
    
    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldType() {
        return fieldType;
    }
    
    public String getIFieldType(){
    	return DocFieldHelper.getIosFieldType(fieldType);
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public String getRemoteFieldName() {
        return remoteFieldName;
    }

    public void setRemoteFieldName(String remoteFieldName) {
        this.remoteFieldName = remoteFieldName;
    }

    public String getCaseFieldName() {
        return caseFieldName;
    }

    public void setCaseFieldName(String caseFieldName) {
        this.caseFieldName = caseFieldName;
    }

	public String getComment() {
		return comment == null ? "" : comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getAssign() {
		if(fieldType != null && fieldType.equalsIgnoreCase("string")){
			return "assign";
		}else{
			return "strong";
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy