gpt4 book ai didi

org.sweble.wikitext.parser.nodes.WtXmlEntityRef.getName()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 09:27:05 26 4
gpt4 key购买 nike

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

WtXmlEntityRef.getName介绍

暂无

代码示例

代码示例来源:origin: org.sweble.wikitext/swc-engine

public void visit(WtXmlEntityRef n)
{
  pf("&%s;", n.getName());
}

代码示例来源:origin: sweble/sweble-wikitext

public void visit(WtXmlEntityRef n)
{
  pf("&%s;", n.getName());
}

代码示例来源:origin: org.sweble.wikitext/swc-parser-lazy

protected void visit(WtXmlEntityRef node) throws StringConversionException
{
  if (node.getResolved() == null)
  {
    if (failOnUnresolvedEntityRef)
      throw new StringConversionException(node);
    b.append('&');
    b.append(node.getName());
    b.append(';');
  }
  else
  {
    b.append(node.getResolved());
  }
}

代码示例来源:origin: sweble/sweble-wikitext

protected void visit(WtXmlEntityRef node) throws StringConversionException
{
  if (node.getResolved() == null)
  {
    if (failOnUnresolvedEntityRef)
      throw new StringConversionException(node);
    b.append('&');
    b.append(node.getName());
    b.append(';');
  }
  else
  {
    b.append(node.getResolved());
  }
}

代码示例来源:origin: sweble/sweble-wikitext

public void visit(WtXmlEntityRef n)
{
  p.indentAtBol();
  pf("&%s;", n.getName());
}

代码示例来源:origin: org.sweble.wikitext/swc-engine

public void visit(WtXmlEntityRef n)
{
  p.indentAtBol();
  pf("&%s;", n.getName());
}

代码示例来源:origin: marcusklang/wikiforia

public void visit(WtXmlEntityRef er)
{
  String ch = er.getResolved();
  if (ch == null)
  {
    if(!isInsideFilteredSection()) {
      sb.append('&' + er.getName() + ';');
    }
  }
  else
  {
    if(!isInsideFilteredSection()) {
      sb.append(ch);
    }
  }
}

代码示例来源:origin: org.sweble.wikitext/swc-parser-lazy

public void visit(WtXmlEntityRef n)
{
  p.print('&');
  p.print(n.getName());
  p.print(';');
}

代码示例来源:origin: sweble/sweble-wikitext

public void visit(WtXmlEntityRef n)
{
  p.print('&');
  p.print(n.getName());
  p.print(';');
}

代码示例来源:origin: sweble/sweble-wikitext

@Override
protected Object getValue(int index)
{
  switch (index - getSuperPropertyCount())
  {
    case 0:
      return WtXmlEntityRef.this.getName();
    case 1:
      return WtXmlEntityRef.this.getResolved();
    default:
      return super.getValue(index);
  }
}

代码示例来源:origin: org.sweble.wikitext/swc-parser-lazy

@Override
protected Object getValue(int index)
{
  switch (index - getSuperPropertyCount())
  {
    case 0:
      return WtXmlEntityRef.this.getName();
    case 1:
      return WtXmlEntityRef.this.getResolved();
    default:
      return super.getValue(index);
  }
}

代码示例来源:origin: marcusklang/wikiforia

public void visit(WtXmlEntityRef er)
{
  String ch = er.getResolved();
  if (ch == null)
  {
    if(!isInsideFilteredSection()) {
      sb.append('&' + er.getName() + ';');
    }
  }
  else
  {
    if(!isInsideFilteredSection()) {
      sb.append(ch);
    }
  }
}

代码示例来源:origin: kermitt2/entity-fishing

public void visit(WtXmlEntityRef er) {
  String ch = er.getResolved();
  if (ch == null) {
    write('&');
    write(er.getName());
    write(';');
  }
  else {
    write(ch);
  }
}

代码示例来源:origin: sweble/sweble-wikitext

public void visit(WtXmlEntityRef er)
{
  String ch = er.getResolved();
  if (ch == null)
  {
    write('&');
    write(er.getName());
    write(';');
  }
  else
  {
    write(ch);
  }
}

代码示例来源:origin: dkpro/dkpro-jwpl

public void visit(WtXmlEntityRef er)
{
  String ch = er.getResolved();
  if (ch == null)
  {
    write('&');
    write(er.getName());
    write(';');
  }
  else
  {
    write(ch);
  }
}

代码示例来源:origin: org.sweble.wikitext/swc-parser-lazy

@Override
  protected Object setValue(int index, Object value)
  {
    switch (index - getSuperPropertyCount())
    {
      case 0:
      {
        String old = WtXmlEntityRef.this.getName();
        WtXmlEntityRef.this.setName((String) value);
        return old;
      }
      case 1:
      {
        String old = WtXmlEntityRef.this.getResolved();
        WtXmlEntityRef.this.setResolved((String) value);
        return old;
      }
      default:
        return super.setValue(index, value);
    }
  }
};

代码示例来源:origin: sweble/sweble-wikitext

@Override
  protected Object setValue(int index, Object value)
  {
    switch (index - getSuperPropertyCount())
    {
      case 0:
      {
        String old = WtXmlEntityRef.this.getName();
        WtXmlEntityRef.this.setName((String) value);
        return old;
      }
      case 1:
      {
        String old = WtXmlEntityRef.this.getResolved();
        WtXmlEntityRef.this.setResolved((String) value);
        return old;
      }
      default:
        return super.setValue(index, value);
    }
  }
};

代码示例来源:origin: org.sweble.wom3/sweble-wom3-swc-adapter

public Wom3ElementNode visit(WtXmlEntityRef n)
{
  if (addSubst)
  {
    Wom3Subst subst = (Wom3Subst) genPushWom("subst");
    {
      Wom3Repl repl = (Wom3Repl) genPushWom("repl");
      {
        convertEntityRef(n);
      }
      popAppend(subst, repl);
      Wom3For for_ = (Wom3For) genPushWom("for");
      {
        Wom3ElementNode entityRef = genPushMwwNotYetImplemented("xml-entity-ref");
        {
          entityRef.setAttribute("name", String.valueOf(n.getName()));
          appendRtd(entityRef, n, 0);
        }
        popAppend(for_, entityRef);
      }
      popAppend(subst, for_);
    }
    return pop(subst);
  }
  else
  {
    convertEntityRef(n);
    return null;
  }
}

代码示例来源:origin: sweble/sweble-wikitext

public Wom3ElementNode visit(WtXmlEntityRef n)
{
  if (addSubst)
  {
    Wom3Subst subst = (Wom3Subst) genPushWom("subst");
    {
      Wom3Repl repl = (Wom3Repl) genPushWom("repl");
      {
        convertEntityRef(n);
      }
      popAppend(subst, repl);
      Wom3For for_ = (Wom3For) genPushWom("for");
      {
        Wom3ElementNode entityRef = genPushMwwNotYetImplemented("xml-entity-ref");
        {
          entityRef.setAttribute("name", String.valueOf(n.getName()));
          appendRtd(entityRef, n, 0);
        }
        popAppend(for_, entityRef);
      }
      popAppend(subst, for_);
    }
    return pop(subst);
  }
  else
  {
    convertEntityRef(n);
    return null;
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com