<?xml version="1.0" encoding="utf-8"?> <!-- This file is Copyright 2007,2008,2009,2010 Rustici Software, LLC Copyright 2010,2011 Kevin Glynn (kevin.glynn.com) --> <Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0"> <Imports /> <Java>Convert</Java> <Name>System.Convert</Name> <Uses /> <Inherits> <Type>System.Object</Type> </Inherits> <Methods> <Method> <Imports> <Import>org.apache.commons.codec.binary.Base64</Import> </Imports> <Java>Base64.decodeBase64(${s})</Java> <Params> <Param> <Type>System.String</Type> <Name>s</Name> </Param> </Params> <Name>FromBase64String</Name> <Return>System.Byte[]</Return> </Method> <Method> <Imports> <Import>org.apache.commons.codec.binary.Base64</Import> </Imports> <Java>Base64.encodeBase64String(${inArray})</Java> <Params> <Param> <Type>System.Byte[]</Type> <Name>inArray</Name> </Param> </Params> <Name>ToBase64String</Name> <Return>System.String</Return> </Method> <Method> <Imports /> <Java>((${value}) > 0)</Java> <Params> <Param> <Type>System.Number</Type> <Name>value</Name> </Param> </Params> <Name>ToBoolean</Name> <Return>System.Boolean</Return> </Method> <Method> <Imports /> <Java>${value}</Java> <Params> <Param> <Type>System.Boolean</Type> <Name>value</Name> </Param> </Params> <Name>ToBoolean</Name> <Return>System.Boolean</Return> </Method> <Method> <Imports /> <Java>Integer.valueOf(${value})</Java> <Params> <Param> <Type>System.String</Type> <Name>value</Name> </Param> </Params> <Name>ToInt32</Name> <Return>System.Int32</Return> </Method> <Method> <Imports /> <Java>(int)Math.round(${value})</Java> <Params> <Param> <Type>System.Number</Type> <Name>value</Name> </Param> </Params> <Name>ToInt32</Name> <Return>System.Int32</Return> </Method> <Method> <Imports /> <Java>Long.valueOf(${value})</Java> <Params> <Param> <Type>System.String</Type> <Name>value</Name> </Param> </Params> <Name>ToInt64</Name> <Return>System.Int64</Return> </Method> <Method> <Imports /> <Java>(long)Math.round(${value})</Java> <Params> <Param> <Type>System.Number</Type> <Name>value</Name> </Param> </Params> <Name>ToInt64</Name> <Return>System.Int64</Return> </Method> <Method> <Imports> <Import>CS2JNet.System.DateTimeSupport</Import> </Imports> <Java>DateTimeSupport.parse(${value})</Java> <Params> <Param> <Type>System.String</Type> <Name>value</Name> </Param> </Params> <Name>ToDateTime</Name> <Return>System.Int64</Return> </Method> <Method> <Imports /> <Java>Integer.toString(${value})</Java> <Params> <Param> <Type>System.Int32</Type> <Name>value</Name> </Param> </Params> <Name>ToString</Name> <Return>System.String</Return> </Method> </Methods> <Properties> <Property> <Imports /> <Java>null</Java> <Type>System.Object</Type> <Name>DBNull</Name> <Get>null</Get> <Set>${this:16}.setDBNull(${value})</Set> </Property> </Properties> <Events /> <Indexers /> <Constructors /> <Fields /> <Casts /> <UnaryOps /> <BinaryOps /> </Class>