2011-03-18 17:40:02 +01:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2011-03-04 18:10:28 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
|
|
|
|
This file is
|
|
|
|
|
|
2011-03-22 08:50:05 +01:00
|
|
|
|
Copyright 2010,2011 Kevin Glynn (kevin.glynn@twigletsoftware.com)
|
2011-03-04 18:10:28 +01:00
|
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
<Interface 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>
|
|
|
|
|
<Import>java.util.Map</Import>
|
|
|
|
|
</Imports>
|
|
|
|
|
<Java>Map*[${K},${V}]*</Java>
|
|
|
|
|
<Name>System.Collections.Generic.IDictionary</Name>
|
|
|
|
|
<TypeParams>
|
|
|
|
|
<Name>K</Name>
|
|
|
|
|
<Name>V</Name>
|
|
|
|
|
</TypeParams>
|
|
|
|
|
<Iterable>
|
|
|
|
|
<ElementType>System.Collections.Generic.KeyValuePair*[K,V]*</ElementType>
|
|
|
|
|
<Java>${expr}.entrySet()</Java>
|
|
|
|
|
</Iterable>
|
2011-03-04 18:46:29 +01:00
|
|
|
|
<Methods>
|
|
|
|
|
<Method>
|
|
|
|
|
<Imports />
|
|
|
|
|
<Java>${this:16}.put(${key}, ${value})</Java>
|
|
|
|
|
<Params>
|
|
|
|
|
<Param>
|
|
|
|
|
<Type>K</Type>
|
|
|
|
|
<Name>key</Name>
|
|
|
|
|
</Param>
|
|
|
|
|
<Param>
|
|
|
|
|
<Type>V</Type>
|
|
|
|
|
<Name>value</Name>
|
|
|
|
|
</Param>
|
|
|
|
|
</Params>
|
|
|
|
|
<Name>Add</Name>
|
|
|
|
|
<Return>System.Void</Return>
|
|
|
|
|
</Method>
|
|
|
|
|
<Method>
|
|
|
|
|
<Imports />
|
|
|
|
|
<Java>${this:16}.clear()</Java>
|
|
|
|
|
<Params />
|
|
|
|
|
<Name>Clear</Name>
|
|
|
|
|
<Return>System.Void</Return>
|
|
|
|
|
</Method>
|
|
|
|
|
<Method>
|
|
|
|
|
<Imports />
|
|
|
|
|
<Java>${this:16}.containsKey(${key})</Java>
|
|
|
|
|
<Params>
|
|
|
|
|
<Param>
|
|
|
|
|
<Type>K</Type>
|
|
|
|
|
<Name>key</Name>
|
|
|
|
|
</Param>
|
|
|
|
|
</Params>
|
|
|
|
|
<Name>ContainsKey</Name>
|
|
|
|
|
<Return>System.Boolean</Return>
|
|
|
|
|
</Method>
|
|
|
|
|
<Method>
|
|
|
|
|
<Imports />
|
|
|
|
|
<Java>${this:16}.remove(${key})</Java>
|
|
|
|
|
<Params>
|
|
|
|
|
<Param>
|
|
|
|
|
<Type>K</Type>
|
|
|
|
|
<Name>key</Name>
|
|
|
|
|
</Param>
|
|
|
|
|
</Params>
|
|
|
|
|
<Name>Remove</Name>
|
|
|
|
|
<!-- in java actually returns the value removed -->
|
|
|
|
|
<Return>System.Boolean</Return>
|
|
|
|
|
</Method>
|
|
|
|
|
</Methods>
|
|
|
|
|
<Indexers>
|
|
|
|
|
<Indexer>
|
|
|
|
|
<Imports />
|
|
|
|
|
<Params>
|
|
|
|
|
<Param>
|
|
|
|
|
<Type>K</Type>
|
|
|
|
|
<Name>key</Name>
|
|
|
|
|
</Param>
|
|
|
|
|
</Params>
|
|
|
|
|
<Type>V</Type>
|
|
|
|
|
<Get>${this:16}.get(${key})</Get>
|
|
|
|
|
<Set>${this:16}.put(${key}, ${value})</Set>
|
|
|
|
|
</Indexer>
|
|
|
|
|
</Indexers>
|
2011-03-04 18:10:28 +01:00
|
|
|
|
<Properties>
|
|
|
|
|
<Property>
|
|
|
|
|
<Imports />
|
|
|
|
|
<Type>System.Collections.Generic.ICollection*[K]*</Type>
|
|
|
|
|
<Name>Keys</Name>
|
|
|
|
|
<Get>${this:16}.keySet()</Get>
|
|
|
|
|
</Property>
|
|
|
|
|
<Property>
|
|
|
|
|
<Imports />
|
|
|
|
|
<Type>System.Collections.Generic.ICollection*[V]*</Type>
|
|
|
|
|
<Name>Values</Name>
|
|
|
|
|
<Get>${this:16}.values()</Get>
|
|
|
|
|
</Property>
|
|
|
|
|
</Properties>
|
2011-03-18 17:40:02 +01:00
|
|
|
|
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>cOvixXCOMP7Ngd/aln+bwdm1Kmw=</DigestValue></Reference></SignedInfo><SignatureValue>dGQ+QgNhHRbSE1yAfU+JBKTOL4fCH3Dkr1bcj69VWxDwTZ2Ig6nmd+g4Yd3l/aLOiijImnNsMFOn+QM7V610OnYMVpwb/Vhs3IqOI5YwaUYzSA12GNGt1BZGzV+o+dkH0aLSwUyAUaZ+HcfKnEl2TrFOxEpaRByyLDb8EYuS8P0=</SignatureValue></Signature></Interface>
|