spring-graphql Release 源码

  • 2022-08-16
  • 浏览 (565)

spring-graphql Release 代码

文件路径:/samples/webmvc-http/src/main/java/io/spring/sample/graphql/project/Release.java

package io.spring.sample.graphql.project;

public class Release {

	private String version;

	private ReleaseStatus status;

	private String referenceDocUrl;

	private String apiDocUrl;

	private boolean current;

	public Release() {
	}

	public Release(Project project, String version, ReleaseStatus status) {
		this.version = version;
		this.status = status;
		this.apiDocUrl = String.format("https://docs.spring.io/%s/docs/%s/javadoc-api/", project.getSlug(), version);
		this.referenceDocUrl = String.format("https://docs.spring.io/%s/docs/%s/reference/html/", project.getSlug(), version);
	}

	public String getVersion() {
		return this.version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public ReleaseStatus getStatus() {
		return this.status;
	}

	public void setStatus(ReleaseStatus status) {
		this.status = status;
	}

	public String getReferenceDocUrl() {
		return this.referenceDocUrl;
	}

	public void setReferenceDocUrl(String referenceDocUrl) {
		this.referenceDocUrl = referenceDocUrl;
	}

	public String getApiDocUrl() {
		return this.apiDocUrl;
	}

	public void setApiDocUrl(String apiDocUrl) {
		this.apiDocUrl = apiDocUrl;
	}

	public boolean isCurrent() {
		return this.current;
	}

	public void setCurrent(boolean current) {
		this.current = current;
	}

}

相关信息

spring-graphql 源码目录

相关文章

spring-graphql Project 源码

spring-graphql ProjectController 源码

spring-graphql ProjectStatus 源码

spring-graphql ReleaseStatus 源码

spring-graphql SpringProjectsClient 源码

spring-graphql package-info 源码

0  赞