-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.PathFormat
public class PathFormats.ReferencePath extends AbstractPathFormat
引用路径。
规则:
以
.作为分隔符,可以在索引之前省略。[index]匹配索引index,index是整数。name匹配名字、键name。
-
-
Field Summary
Fields Modifier and Type Field Description private final StringcomponentIdprivate final Map<String, Object>componentParamspublic final static PathFormats.ReferencePathINSTANCE
-
Method Summary
Modifier and Type Method Description Stringnormalize(String path)标准化指定的路径。将会去除其中的空白以及尾随的分隔符。 Booleanmatches(String value, String path)判断指定的字符串是否匹配指定的路径。 Map<String, String>resolveVariables(String value, String path)解析路径变量。如果路径不匹配,则返回空结果。 StringgetComponentId()Map<String, Object>getComponentParams()-
Methods inherited from class icu.windea.breezeframework.core.component.PathFormats.ReferencePath
equals, get, getOrDefault, getOrElse, getOrNull, hashCode, joinToString, joinToString, joinToString, query, split, splitToSequence, toString -
Methods inherited from class icu.windea.breezeframework.core.component.AbstractPathFormat
componentCopy -
Methods inherited from class icu.windea.breezeframework.core.component.PathFormat
componentEquals, componentHashcode, componentToString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
resolveVariables
Map<String, String> resolveVariables(String value, String path)
解析路径变量。如果路径不匹配,则返回空结果。
-
getComponentId
String getComponentId()
-
getComponentParams
Map<String, Object> getComponentParams()
-
-
-
-