terp - the Codemesh Modular
Template Interpreter v1.3.309

com.codemesh.terp.data
Class Bc.BcConverter

java.lang.Object
  extended by com.codemesh.terp.data.Bc.BcConverter
All Implemented Interfaces:
Converter<Bc.BcExecutor>
Enclosing interface:
Bc

public static class Bc.BcConverter
extends java.lang.Object
implements Converter<Bc.BcExecutor>

A converter that creates an Bc.BcExecutor for the CompuWare DevPartner Bc error checking utility. This converter is registered with the terp runtime under the ^bc alias. In addition to supporting initialization from String and File, this converter has a default (null or empty map) initializer that simply looks for an installed copy of bc and returns it.

See Also:
the executor type.

Constructor Summary
Bc.BcConverter()
           
 
Method Summary
 Bc.BcExecutor fromObject(java.lang.Object obj, TerpContext ctx)
          Converts the given object into an object of the target type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bc.BcConverter

public Bc.BcConverter()
Method Detail

fromObject

public Bc.BcExecutor fromObject(java.lang.Object obj,
                                TerpContext ctx)
Converts the given object into an object of the target type. Conversions can be implemented in any way that makes sense. Normally, converters will return null for null, but some converters may choose to interpret null as an indicator to return a default-initialized target object. An example of this type of conversion is the ShellExecutor. null simply indicates that no preference overrides of any kind have been provided. This converter interprets null or an empty input map as a request for the default instance of Bc.exe.

Specified by:
fromObject in interface Converter<Bc.BcExecutor>
Parameters:
obj - the source object.
ctx - the context in which the conversion takes place.
Returns:
an instance of the target type or null.

terp - the Codemesh Modular
Template Interpreter v1.3.309

Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.