com.taskadapter.redmineapi.bean.WikiPage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redmine-java-api Show documentation
Show all versions of redmine-java-api Show documentation
Free open-source Java API for Redmine and Chiliproject bug/task management systems.
This project was originally a part of Task Adapter application (http://www.taskadapter.com)
and then was open-sourced.
The newest version!
package com.taskadapter.redmineapi.bean;
import java.util.Date;
public class WikiPage {
private final PropertyStorage storage = new PropertyStorage();
public final static Property TITLE = new Property<>(String.class, "title");
public final static Property VERSION = new Property<>(Integer.class, "version");
public final static Property CREATED_ON = new Property<>(Date.class, "createdOn");
public final static Property UPDATED_ON = new Property<>(Date.class, "updatedOn");
public String getTitle() {
return storage.get(TITLE);
}
public WikiPage setTitle(String title) {
storage.set(TITLE, title);
return this;
}
public Integer getVersion() {
return storage.get(VERSION);
}
public WikiPage setVersion(Integer version) {
storage.set(VERSION, version);
return this;
}
public Date getCreatedOn() {
return storage.get(CREATED_ON);
}
public WikiPage setCreatedOn(Date createdOn) {
storage.set(CREATED_ON, createdOn);
return this;
}
public Date getUpdatedOn() {
return storage.get(UPDATED_ON);
}
public WikiPage setUpdatedOn(Date updatedOn) {
storage.set(UPDATED_ON, updatedOn);
return this;
}
@Override
public String toString() {
return "WikiPage{" +
"title='" + getTitle() + '\'' +
", version=" + getVersion() +
", createdOn=" + getCreatedOn() +
", updatedOn=" + getUpdatedOn() +
'}';
}
}