org.xwiki.rendering.syntax.Syntax.getVersion()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(139)

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

Syntax.getVersion介绍

暂无

代码示例

代码示例来源:origin: org.xwiki.platform/xwiki-core-rendering-api

public String toIdString()
{
  return getType().getId() + "/" + getVersion().toLowerCase();
}

代码示例来源:origin: org.xwiki.platform/xwiki-core-rendering-api

/**
 * {@inheritDoc}
 * 
 * @see Object#hashCode()
 */
@Override
public int hashCode()
{
  // Random number. See http://www.technofundo.com/tech/java/equalhash.html for the detail of this
  // algorithm.
  int hash = 7;
  hash = 31 * hash + (null == getType() ? 0 : getType().hashCode());
  hash = 31 * hash + (null == getVersion() ? 0 : getVersion().hashCode());
  hash = 31 * hash + (null == getQualifier() ? 0 : getQualifier().hashCode());
  return hash;
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

if (syntaxVersion != null) {
  if (factorySyntax.getType().getId().equalsIgnoreCase(syntaxType)
    && factorySyntax.getVersion().equals(syntaxVersion)) {
    syntax = factorySyntax;
    break;
    && (syntax == null || factorySyntax.getVersion().compareTo(syntax.getVersion()) > 0)) {
    syntax = factorySyntax;

代码示例来源:origin: org.xwiki.platform/xwiki-core-rendering-api

/**
   * {@inheritDoc}
   * 
   * @see Object#equals(Object)
   */
  @Override
  public boolean equals(Object object)
  {
    boolean result;

    // See http://www.technofundo.com/tech/java/equalhash.html for the detail of this algorithm.
    if (this == object) {
      result = true;
    } else {
      if ((object == null) || (object.getClass() != this.getClass())) {
        result = false;
      } else {
        // object must be Syntax at this point
        Syntax syntax = (Syntax) object;
        result =
          (getType() == syntax.getType() || (getType() != null && getType().equals(syntax.getType())))
            && (getVersion() == syntax.getVersion() || (getVersion() != null && getVersion().equals(
              syntax.getVersion())))
            && (getQualifier() == syntax.getQualifier() || (getQualifier() != null && getQualifier().equals(
              syntax.getQualifier())));
      }
    }
    return result;
  }
}

代码示例来源:origin: org.xwiki.platform/xwiki-core-rendering-api

/**
 * {@inheritDoc}
 * 
 * @see Object#toString()
 */
@Override
public String toString()
{
  return getType().toString() + " " + getVersion() + (getQualifier() != null ? " (" + getQualifier() + ")" : "");
}

相关文章