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

net.rationalminds.LocalDateModel Maven / Gradle / Ivy

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package net.rationalminds;

/**
 * {@link LocalDateModel} is the output produced by {@link Parser}
 * 
 * @author Vaibhav Singh
 * 
 */
public class LocalDateModel {

	/**
	 * original text identified in the source text
	 **/
	private String originalText;
	/**
	 * formatted date time found in the text, this is fully qualified formatted
	 * string representation of date
	 * */
	private String dateTimeString;
	/**
	 * format in which {@linkplain dateTimeString} is represented
	 **/
	private String conDateFormat;
	/**
	 * start of identified text fragment in the source text
	 */
	private int start;
	/**
	 * end of identified text fragment in the source text
	 */
	private int end;

	public String getOriginalText() {
		return originalText;
	}

	protected void setOriginalText(String originalText) {
		this.originalText = originalText;
	}

	public String getDateTimeString() {
		return dateTimeString;
	}

	protected void setDateTimeString(String dateTimeString) {
		this.dateTimeString = dateTimeString;
	}

	public String getConDateFormat() {
		return conDateFormat;
	}

	protected void setConDateFormat(String conDateFormat) {
		this.conDateFormat = conDateFormat;
	}

	public int getStart() {
		return start;
	}

	protected void setStart(int start) {
		this.start = start;
	}

	public int getEnd() {
		return end;
	}

	protected void setEnd(int end) {
		this.end = end;
	}

	@Override
	public String toString() {
		return "LocalDateModel{" + "originalText=" + originalText + ", dateTimeString=" + dateTimeString + ", conDateFormat=" + conDateFormat + ", start=" + start + ", end=" + end
				+ '}';
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy