mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
実装 WIP
This commit is contained in:
parent
1d3015a7e4
commit
180428fbb7
23
model/src/main/java/one/nem/lacerta/model/PublicPath.java
Normal file
23
model/src/main/java/one/nem/lacerta/model/PublicPath.java
Normal file
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user