public class ST_Loc extends STBase
约定: 1. “、”代表根节点; 2. 未显示指定代表当前路径; 3. 路径区分大小写
示例:
/Pages/P1/Content.xml
./Res/Book1.jpg
../Pages/P1/Res.xml
Pages/P1/Rcs.xml
————《GB/T 33190-2016》 表 2 基本数据类型
| 限定符和类型 | 方法和说明 |
|---|---|
ST_Loc |
cat(ST_Loc loc)
路径拼接
|
ST_Loc |
cat(String p2)
路径拼接
|
boolean |
endWith(String suffix)
是否以指定字符结尾
|
String |
getFileName()
获取路径的文件名称
|
static ST_Loc |
getInstance(org.dom4j.Element e)
从实例中获取 路径
|
static ST_Loc |
getInstance(String loc)
获取路径实例
|
String |
getLoc() |
String |
parent()
获取父母路径
|
ST_Loc |
parentLoc()
获取父母路径
|
ST_Loc |
setLoc(String loc) |
String[] |
split()
路径分割
|
String |
toString() |
fmt, getElement, toDouble, toIntpublic ST_Loc(String path)
public static ST_Loc getInstance(org.dom4j.Element e)
e - 元素public String getLoc()
public String[] split()
public String parent()
public ST_Loc parentLoc()
public String getFileName()
public boolean endWith(String suffix)
suffix - 指定字符Copyright © 2021. All rights reserved.