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


Java TransformerImpl.getParameter方法代码示例

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


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

示例1: annotation

import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static void annotation(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
	TransformerImpl transformer = ctx.getTransformer();
	XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
	int start = getAttributeIntValue(ctx, call, START_ATTRNAME);
	int end = getAttributeIntValue(ctx, call, END_ATTRNAME);
	String layers0 = getAttributeStringValue(ctx, call, "xpath-layers", "layers");
	//System.err.println("a: " + start + "-" + end + " (" + layers0 + ")");
	if (layers0 == null)
		return;
	layers0 = layers0.trim();
	if (layers0.isEmpty())
		return;
	String[] layers = WHITESPACE.split(layers0);
	String ref = getAttributeStringValue(ctx, call, "xpath-ref", "ref");
	xrctx.startAnnotation(start, end, layers, ref);
	transformer.executeChildTemplates(call, false);
	xrctx.endAnnotation();
}
 
开发者ID:Bibliome,项目名称:alvisnlp,代码行数:19,代码来源:XMLReader.java

示例2: document

import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static void document(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
	TransformerImpl transformer = ctx.getTransformer();
	XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
	String id = getAttributeStringValue(ctx, call, "xpath-id", "id");
	xrctx.startDocument(id);
	transformer.executeChildTemplates(call, false);
	xrctx.endDocument();
}
 
开发者ID:Bibliome,项目名称:alvisnlp,代码行数:9,代码来源:XMLReader.java

示例3: section

import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static void section(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
	TransformerImpl transformer = ctx.getTransformer();
	XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
	String name = getAttributeStringValue(ctx, call, "xpath-name", "name");
	String contents = getAttributeStringValue(ctx, call, "xpath-contents", "contents");
	boolean referenceScope = getAttributeBooleanValue(ctx, call, "references", true);
	xrctx.startSection(name, contents);
	if (referenceScope)
		xrctx.startRefScope();
	transformer.executeChildTemplates(call, false);
	if (referenceScope)
		xrctx.endRefScope();
	xrctx.endSection();
}
 
开发者ID:Bibliome,项目名称:alvisnlp,代码行数:15,代码来源:XMLReader.java

示例4: relation

import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static final void relation(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
	TransformerImpl transformer = ctx.getTransformer();
	XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
	String name = getAttributeStringValue(ctx, call, "xpath-name", "name");
	xrctx.startRelation(name);
	transformer.executeChildTemplates(call, false);
	xrctx.endRelation();
}
 
开发者ID:Bibliome,项目名称:alvisnlp,代码行数:9,代码来源:XMLReader.java

示例5: tuple

import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static final void tuple(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
	TransformerImpl transformer = ctx.getTransformer();
	XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
	xrctx.startTuple();
	transformer.executeChildTemplates(call, false);
	xrctx.endTuple();
}
 
开发者ID:Bibliome,项目名称:alvisnlp,代码行数:8,代码来源:XMLReader.java

示例6: arg

import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static final void arg(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
	TransformerImpl transformer = ctx.getTransformer();
	XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
	String role = getAttributeStringValue(ctx, call, "xpath-role", "role");
	String ref = getAttributeStringValue(ctx, call, "xpath-ref", "ref");
	xrctx.setArgument(role, ref);
}
 
开发者ID:Bibliome,项目名称:alvisnlp,代码行数:8,代码来源:XMLReader.java

示例7: feature

import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static void feature(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
	TransformerImpl transformer = ctx.getTransformer();
	XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
	String name = getAttributeStringValue(ctx, call, "xpath-name", "name");
	String value = getAttributeStringValue(ctx, call, "xpath-value", "value");
	xrctx.setFeature(name, value);
	transformer.executeChildTemplates(call, false);
}
 
开发者ID:Bibliome,项目名称:alvisnlp,代码行数:9,代码来源:XMLReader.java

示例8: references

import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static void references(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
	TransformerImpl transformer = ctx.getTransformer();
	XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
	xrctx.startRefScope();
	transformer.executeChildTemplates(call, false);
	xrctx.endRefScope();
}
 
开发者ID:Bibliome,项目名称:alvisnlp,代码行数:8,代码来源:XMLReader.java


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