Package 

Class AbstractPathFormat

  • All Implemented Interfaces:
    icu.windea.breezeframework.core.component.Component , icu.windea.breezeframework.core.component.PathFormat

    
    public abstract class AbstractPathFormat
     implements PathFormat
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getComponentId()
      Map<String, Object> getComponentParams()
      String normalize(String path) 标准化指定的路径。将会去除其中的空白以及尾随的分隔符。
      Boolean matches(String value, String path) 判断指定的字符串是否匹配指定的路径。
      Map<String, String> resolveVariables(String value, String path) 解析路径变量。如果路径不匹配,则返回空结果。
      List<String> split(String path) 将指定的字符串分隔成元路径列表,并过滤空的元路径。
      Sequence<String> splitToSequence(String path) 将指定的字符串分隔成元路径序列,并过滤空的元路径。
      String joinToString(Array<String> metaPaths) 将元路径数组组合成完整路径。
      String joinToString(Iterable<String> metaPaths) 将元路径列表组合成完整路径。
      String joinToString(Sequence<String> metaPaths) 将元路径序列组合成完整路径。
      <T extends Any> List<T> query(Object value, String path) 根据指定路径查询查询对象,返回查询结果列表。 如果指定路径为空路径,则返回查询对象的单例列表。
      <T extends Any> T get(Object value, String path) 根据指定路径查询查询对象,得到首个匹配的值,或者抛出异常。 如果指定路径为空路径,则返回查询对象本身。
      <T extends Any> T getOrNull(Object value, String path) 根据指定路径查询查询对象,得到首个匹配的值,或者返回null。 如果指定路径为空路径,则返回查询对象本身。
      <T extends Any> T getOrDefault(Object value, String path, T defaultValue) 根据指定路径查询查询对象,得到首个匹配的值,或者返回默认值。 如果指定路径为空路径,则返回查询对象本身。
      <T extends Any> T getOrElse(Object value, String path, Function0<T> defaultValue) 根据指定路径查询查询对象,得到首个匹配的值,或者返回默认值。 如果指定路径为空路径,则返回查询对象本身。
      Boolean equals(Object other)
      Integer hashCode()
      String 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