当前位置: 首页>>代码示例>>Java>>正文


Java ElemTemplateElement.setDOMBackPointer方法代码示例

本文整理汇总了Java中org.apache.xalan.templates.ElemTemplateElement.setDOMBackPointer方法的典型用法代码示例。如果您正苦于以下问题:Java ElemTemplateElement.setDOMBackPointer方法的具体用法?Java ElemTemplateElement.setDOMBackPointer怎么用?Java ElemTemplateElement.setDOMBackPointer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.xalan.templates.ElemTemplateElement的用法示例。


在下文中一共展示了ElemTemplateElement.setDOMBackPointer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: appendAndPush

import org.apache.xalan.templates.ElemTemplateElement; //导入方法依赖的package包/类
/**
 * Append the current template element to the current
 * template element, and then push it onto the current template
 * element stack.
 *
 * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
 * @param elem non-null reference to a {@link org.apache.xalan.templates.ElemText}.
 *
 * @throws org.xml.sax.SAXException Any SAX exception, possibly
 *            wrapping another exception.
 */
protected void appendAndPush(
        StylesheetHandler handler, ElemTemplateElement elem)
          throws org.xml.sax.SAXException
{

  // Don't push this element onto the element stack.
  ProcessorCharacters charProcessor =
    (ProcessorCharacters) handler.getProcessorFor(null, "text()", "text");

  charProcessor.setXslTextElement((ElemText) elem);

  ElemTemplateElement parent = handler.getElemTemplateElement();

  parent.appendChild(elem);
  elem.setDOMBackPointer(handler.getOriginatingNode());
}
 
开发者ID:keplersj,项目名称:In-the-Box-Fork,代码行数:28,代码来源:ProcessorText.java

示例2: appendAndPush

import org.apache.xalan.templates.ElemTemplateElement; //导入方法依赖的package包/类
/**
 * Must include; super doesn't suffice!
 */
protected void appendAndPush(
        StylesheetHandler handler, ElemTemplateElement elem)
          throws SAXException
{
  //System.out.println("ProcessorFunction appendAndPush()" + elem);
  super.appendAndPush(handler, elem);
  //System.out.println("originating node " + handler.getOriginatingNode());
  elem.setDOMBackPointer(handler.getOriginatingNode());
  handler.getStylesheet().setTemplate((ElemTemplate) elem);
}
 
开发者ID:keplersj,项目名称:In-the-Box-Fork,代码行数:14,代码来源:ProcessorExsltFunction.java

示例3: appendAndPush

import org.apache.xalan.templates.ElemTemplateElement; //导入方法依赖的package包/类
/**
 * Append the current template element to the current
 * template element, and then push it onto the current template
 * element stack.
 *
 * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
 * @param elem Must be a non-null reference to a {@link org.apache.xalan.templates.ElemTemplate} object.
 *
 * @throws org.xml.sax.SAXException Any SAX exception, possibly
 *            wrapping another exception.
 */
protected void appendAndPush(
        StylesheetHandler handler, ElemTemplateElement elem)
          throws org.xml.sax.SAXException
{

  super.appendAndPush(handler, elem);
  elem.setDOMBackPointer(handler.getOriginatingNode());
  handler.getStylesheet().setTemplate((ElemTemplate) elem);
}
 
开发者ID:keplersj,项目名称:In-the-Box-Fork,代码行数:21,代码来源:ProcessorTemplate.java


注:本文中的org.apache.xalan.templates.ElemTemplateElement.setDOMBackPointer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。