mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
実装 WIP
This commit is contained in:
1 file changed
+23
@@ -0,0 +1,23 @@
|
|||||||
|
package one.nem.lacerta.model;
|
||||||
|
|
||||||
|
public class PublicPath {
|
||||||
|
/*
|
||||||
|
* ユーザーが扱うパス(内部パスの代替)
|
||||||
|
*/
|
||||||
|
|
||||||
|
String[] path;
|
||||||
|
|
||||||
|
public PublicPath() {
|
||||||
|
this.path = new String[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
public PublicPath load(String[] path) {
|
||||||
|
this.path = path;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PublicPath load(String path) {
|
||||||
|
this.path = path.split("/");
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user