org.apache.wicket.util.string.Strings.afterFirstPathComponent()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中org.apache.wicket.util.string.Strings.afterFirstPathComponent()方法的一些代码示例,展示了Strings.afterFirstPathComponent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Strings.afterFirstPathComponent()方法的具体详情如下:
包路径:org.apache.wicket.util.string.Strings
类名称:Strings
方法名:afterFirstPathComponent

Strings.afterFirstPathComponent介绍

[英]Gets everything after the first path component of a path using a given separator. If the separator cannot be found, an empty String is returned.

For example, afterFirstPathComponent("foo:bar:baz", ':') would return "bar:baz" and afterFirstPathComponent("foo", ':') would return "".
[中]使用给定的分隔符获取路径的第一个路径组件之后的所有内容。如果找不到分隔符,则返回空字符串。
例如,afterFirstPathComponent(“foo:bar:baz,':')将返回“bar:baz”,afterFirstPathComponent(“foo,':'))将返回“”。

代码示例

代码示例来源:origin: apache/wicket

/**
 * Gets the path to this component relative to its containing page, i.e. without leading page
 * id.
 * 
 * @return The path to this component relative to the page it is in
 */
@Override
public final String getPageRelativePath()
{
  return Strings.afterFirstPathComponent(getPath(), PATH_SEPARATOR);
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Gets the path to this component relative to its containing page, i.e. without leading page
 * id.
 * 
 * @return The path to this component relative to the page it is in
 */
@Override
public final String getPageRelativePath()
{
  return Strings.afterFirstPathComponent(getPath(), PATH_SEPARATOR);
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Gets the path to this component relative to the page it is in.
 * 
 * @return The path to this component relative to the page it is in
 */
public final String getPageRelativePath()
{
  return Strings.afterFirstPathComponent(getPath(), PATH_SEPARATOR);
}

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Gets the path to this component relative to the page it is in.
 * 
 * @return The path to this component relative to the page it is in
 */
public final String getPageRelativePath()
{
  return Strings.afterFirstPathComponent(getPath(), PATH_SEPARATOR);
}

代码示例来源:origin: org.apache.isis.core/isis-core-viewer-wicket-model

public static String hintPathFor(Component component) {
  final String fullHintPath = fullHintPathFor(component);
  final String firstPathComponent =
      Strings.afterFirstPathComponent(fullHintPath, Component.PATH_SEPARATOR);
  return firstPathComponent;
}

代码示例来源:origin: org.apache.isis.viewer/isis-viewer-wicket-model

public static String hintPathFor(Component component) {
  final String fullHintPath = fullHintPathFor(component);
  final String firstPathComponent =
      Strings.afterFirstPathComponent(fullHintPath, Component.PATH_SEPARATOR);
  return firstPathComponent;
}

代码示例来源:origin: apache/wicket

String path2 = Strings.afterFirstPathComponent(path, Component.PATH_SEPARATOR);

代码示例来源:origin: org.apache.wicket/wicket-core

String path2 = Strings.afterFirstPathComponent(path, Component.PATH_SEPARATOR);

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

final String path2 = Strings.afterFirstPathComponent(path, Component.PATH_SEPARATOR);

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/** {@inheritDoc} */
@Override
protected String addPageInfo(String url, PageInfo pageInfo)
{
  if (pageInfo == null)
  {
    return url;
  }
  else
  {
    // Insert the page info at the and of the path and before the querystring.
    if (url.indexOf('?') == -1)
    {
      return url + getBeginSeparator() + pageInfo.toString() + getEndSeparator();
    }
    else
    {
      return Strings.firstPathComponent(url, '?') + getBeginSeparator() +
        pageInfo.toString() + getEndSeparator() + '?' +
        Strings.afterFirstPathComponent(url, '?');
    }
  }
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

final String path2 = Strings.afterFirstPathComponent(path, Component.PATH_SEPARATOR);

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

final String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath,
  Component.PATH_SEPARATOR);
if (Strings.isEmpty(pageRelativeComponentPath))

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

final String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath,
  Component.PATH_SEPARATOR);
if (Strings.isEmpty(pageRelativeComponentPath))

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

final RequestParameters requestParameters)
String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath,
  Component.PATH_SEPARATOR);
Component component = null;

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

final RequestParameters requestParameters)
String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath,
    Component.PATH_SEPARATOR);
Component component = null;

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

final String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath,
  Component.PATH_SEPARATOR);
Component component = page.get(pageRelativeComponentPath);

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

Component comp = page.get(Strings.afterFirstPathComponent(componentPath,
  Component.PATH_SEPARATOR));
param.append(Component.PATH_SEPARATOR);

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

final String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath,
  Component.PATH_SEPARATOR);
Component component = page.get(pageRelativeComponentPath);

相关文章