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

com.webapp.utils.poi.ExcelHeader Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.webapp.utils.poi;

public class ExcelHeader implements Comparable {

	private String title;
	private int order;
	private String methodName;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getPropName() {
		String mn = this.getMethodName().substring(3);
		return mn.substring(0, 1).toLowerCase() + mn.substring(1);
	}

	@Override
	public int compareTo(ExcelHeader o) {
		return order > o.order ? 1 : -1;
	}

	public ExcelHeader(String title, int order, String methodName) {
		super();
		this.title = title;
		this.order = order;
		this.methodName = methodName;
	}

	@Override
	public String toString() {
		return "ExcelHeader [title=" + title + ", order=" + order
				+ ", methodName=" + methodName + "]";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy