<?xml version="1.0" encoding="utf-8"?> <Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file://C:/Documents%20and%20Settings/kevin.glynn/My%20Documents/CS2JLibrary/Translation.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Name>System.Text.StringBuilder</Name> <Extends>System.Object</Extends> <Java>StringBuilder</Java> <Constructors> <Constructor> <Java>new StringBuilder()</Java> </Constructor> <Constructor> <Params> <Param> <Name>str</Name> <Type>System.String</Type> </Param> </Params> <Java>new StringBuilder(${str})</Java> </Constructor> </Constructors> <Properties> <Property> <Name>Length</Name> <Type>System.Int32</Type> <Get>${this}.length()</Get> <Set>StringBuilderSupport.setLength(${this}, ${value})</Set> <Imports> <Import>RusticiSoftware.System.Text.StringBuilderSupport</Import> </Imports> </Property> <Property> <Name>Capacity</Name> <Type>System.Int32</Type> <Get>${this}.capacity()</Get> <Set>${this}.ensureCapacity(${value})</Set> </Property> </Properties> <Methods> <Method> <Return>System.Text.StringBuilder</Return> <Name>Append</Name> <Params> <Param> <Name>arg</Name> <Type>System.Object</Type> </Param> </Params> <Java>${this}.append(${arg})</Java> </Method> <Method> <Return>System.Text.StringBuilder</Return> <Name>AppendLine</Name> <Params> <Param> <Name>arg</Name> <Type>System.String</Type> </Param> </Params> <Java>${this}.append((${arg}) + System.getProperty("line.separator"))</Java> </Method> <Method> <Return>System.Int32</Return> <Name>EnsureCapacity</Name> <Params> <Param> <Name>arg</Name> <Type>System.Int32</Type> </Param> </Params> <Imports> <Import>RusticiSoftware.System.Text.StringBuilderSupport</Import> </Imports> <Java>StringBuilderSupport.ensureCapacity(${this}, ${arg})</Java> </Method> <Method> <Return>System.Text.StringBuilder</Return> <Name>Insert</Name> <Params> <Param> <Name>idx</Name> <Type>System.Int32</Type> </Param> <Param> <Name>obj</Name> <Type>System.Object</Type> </Param> </Params> <Java>${this}.insert(${idx}, ${obj})</Java> </Method> <Method> <Return>System.Text.StringBuilder</Return> <Name>Replace</Name> <Params> <Param> <Name>old</Name> <Type>System.Char</Type> </Param> <Param> <Name>new</Name> <Type>System.Char</Type> </Param> </Params> <Java>${this}.replace(${old}, ${new})</Java> </Method> <Method> <Return>System.Text.StringBuilder</Return> <Name>Remove</Name> <Params> <Param> <Name>startIndex</Name> <Type>System.Int32</Type> </Param> <Param> <Name>length</Name> <Type>System.Int32</Type> </Param> </Params> <Java>${this}.delete(${startIndex}, (${startIndex})+(${length}))</Java> </Method> <Method> <Return>System.String</Return> <Name>ToString</Name> <Params> <Param> <Name>startIndex</Name> <Type>System.Int32</Type> </Param> <Param> <Name>length</Name> <Type>System.Int32</Type> </Param> </Params> <Java>${this}.substring(${startIndex}, (${startIndex})+(${length}))</Java> </Method> </Methods> </Class>