本文整理了Java中javax.xml.transform.Transformer.clearParameters()
方法的一些代码示例,展示了Transformer.clearParameters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transformer.clearParameters()
方法的具体详情如下:
包路径:javax.xml.transform.Transformer
类名称:Transformer
方法名:clearParameters
[英]Clear all parameters set with setParameter.
[中]清除使用setParameter设置的所有参数。
代码示例来源:origin: pentaho/pentaho-kettle
public Transformer getTemplate( String xslFilename, boolean isAfile ) throws Exception {
Transformer template = transformers.get( xslFilename );
if ( template != null ) {
template.clearParameters();
return template;
}
return createNewTemplate( xslFilename, isAfile );
}
代码示例来源:origin: kiegroup/jbpm
public static void transform(String stylesheet,
Source src,
Result res,
HashMap<String, String> params) throws Exception {
Transformer transformer = getTransformer( stylesheet );
transformer.clearParameters();
if ( params != null && params.size() > 0 ) {
Iterator<String> itKeys = params.keySet().iterator();
while ( itKeys.hasNext() ) {
String key = itKeys.next();
String value = params.get( key );
transformer.setParameter( key,
value );
}
}
transformer.transform( src,
res );
}
代码示例来源:origin: org.custommonkey.xmlunit/com.springsource.org.custommonkey.xmlunit
/**
* Clear parameters used for the transformation
* @see Transformer#clearParameters()
*/
public void clearParameters() {
transformer.clearParameters();
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public void clearParameters() {
if (m_realTransformer != null)
m_realTransformer.clearParameters();
}
代码示例来源:origin: apache/stanbol
public void initTransformerParameters(Map<String, Object> params) {
transformer.clearParameters();
if (params != null) {
Set<String> parms = params.keySet();
for (String piter : parms) {
transformer.setParameter(piter, params.get(piter));
}
}
}
代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.enhancer.engines.htmlextractor
public void initTransformerParameters(Map<String, Object> params) {
transformer.clearParameters();
if (params != null) {
Set<String> parms = params.keySet();
for (String piter : parms) {
transformer.setParameter(piter, params.get(piter));
}
}
}
代码示例来源:origin: org.jbpm/jbpm-flow-builder
public static void transform(String stylesheet,
Source src,
Result res,
HashMap<String, String> params) throws Exception {
Transformer transformer = getTransformer( stylesheet );
transformer.clearParameters();
if ( params != null && params.size() > 0 ) {
Iterator<String> itKeys = params.keySet().iterator();
while ( itKeys.hasNext() ) {
String key = itKeys.next();
String value = params.get( key );
transformer.setParameter( key,
value );
}
}
transformer.transform( src,
res );
}
代码示例来源:origin: org.mule.modules/mule-module-xml
@Override
public void passivateObject(Object object) throws Exception
{
javax.xml.transform.Transformer transformer = (javax.xml.transform.Transformer) object;
// Clear transformation parameters before returning transformer to the pool
transformer.clearParameters();
// Clean up transformer before return it to the pool
transformer.reset();
super.passivateObject(transformer);
}
}
代码示例来源:origin: com.qualinsight.mojo.cobertura/qualinsight-mojo-cobertura-conversion
private void reset() {
this.coberturaToSonarqubeTransformer.clearParameters();
this.coberturaToSonarqubeTransformer.reset();
this.builder.reset();
}
}
代码示例来源:origin: usnistgov/iheos-toolkit2
transformer.clearParameters();
if (parameters != null) {
System.out.println("Transform.java: Has parameters");
代码示例来源:origin: org.ikasan/ikasan-common
this.transformer.clearParameters();
代码示例来源:origin: org.ikasan/ikasan-filetransfer-common
this.transformer.clearParameters();
代码示例来源:origin: net.sf.okapi.steps/okapi-step-xsltransform
private void fillParameters () {
trans.clearParameters();
String value = null;
try {
代码示例来源:origin: org.camunda.bpm.extension.xslt/camunda-bpm-xslt
transformer.clearParameters();
代码示例来源:origin: org.apache.cocoon/cocoon-pipeline-components
if (params != null) {
final Transformer transformer = handler.getTransformer();
transformer.clearParameters();
final Iterator i = params.entrySet().iterator();
while ( i.hasNext() ) {
代码示例来源:origin: lutece-platform/lutece-core
transformer.clearParameters( );
代码示例来源:origin: lutece-platform/lutece-core
transformer.clearParameters( );
代码示例来源:origin: org.apache.cocoon/cocoon-pipeline-components
if (params != null) {
final Transformer transformer = handler.getTransformer();
transformer.clearParameters();
String[] names = params.getNames();
for (int i = names.length - 1; i >= 0; i--) {
内容来源于网络,如有侵权,请联系作者删除!