From b731e566e725377bd6f4e37c5eca461377dd24de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 14 Dec 2023 12:51:15 +0900 Subject: [PATCH] =?UTF-8?q?JavaDoc=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/document/path/DocumentPath.java | 92 ++++++++++++------- 1 file changed, 61 insertions(+), 31 deletions(-) diff --git a/model/src/main/java/one/nem/lacerta/model/document/path/DocumentPath.java b/model/src/main/java/one/nem/lacerta/model/document/path/DocumentPath.java index a4a432ea..79b4b3d9 100644 --- a/model/src/main/java/one/nem/lacerta/model/document/path/DocumentPath.java +++ b/model/src/main/java/one/nem/lacerta/model/document/path/DocumentPath.java @@ -3,49 +3,79 @@ package one.nem.lacerta.model.document.path; import java.nio.file.Path; import java.nio.file.Paths; +/** + * ドキュメントのパス + */ public class DocumentPath { - String rootPath; - String path; + /** + * ドキュメントのルートパス(String) + */ + String rootPath; - // Constructor + /** + * ドキュメントのパス(String) + */ + String path; - public DocumentPath() { - } + // Constructor - public DocumentPath(String rootPath, String path) { - this.rootPath = rootPath; - this.path = path; - } + public DocumentPath() { + } - // Getter + public DocumentPath(String rootPath, String path) { + this.rootPath = rootPath; + this.path = path; + } - public String getRootPath() { - return rootPath; - } + // Getter - public String getPath() { - return path; - } + /** + * ドキュメントのルートパス(String)を取得する + */ + public String getRootPath() { + return rootPath; + } - public Path getFullPath() { - // rootPathとpathを結合して返す - return Paths.get(rootPath, path); - } + /** + * ドキュメントのパス(String)を取得する + */ + public String getPath() { + return path; + } - public String getFullPathString() { - // rootPathとpathを結合して返す - return Paths.get(rootPath, path).toString(); - } + /** + * ドキュメントのフルパス(Path)を取得する + */ + public Path getFullPath() { + // rootPathとpathを結合して返す + return Paths.get(rootPath, path); + } - // Setter + /** + * ドキュメントのフルパス(String)を取得する + */ + public String getFullPathString() { + // rootPathとpathを結合して返す + return Paths.get(rootPath, path).toString(); + } - public void setRootPath(String rootPath) { - this.rootPath = rootPath; - } + // Setter - public void setPath(String path) { - this.path = path; - } + /** + * ドキュメントのルートパス(String)を設定する + * @param rootPath ドキュメントのルートパス + */ + public void setRootPath(String rootPath) { + this.rootPath = rootPath; + } + + /** + * ドキュメントのパス(String)を設定する + * @param path ドキュメントのパス + */ + public void setPath(String path) { + this.path = path; + } }