[ https://issues.apache.org/jira/browse/CONNECTORS-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14349583#comment-14349583 ]
Kishore Kumar edited comment on CONNECTORS-1160 at 3/5/15 11:23 PM: -------------------------------------------------------------------- Hi [~kwri...@metacarta.com] Do we have a Pair<K,V> class or similar used in Manifold. I want to store a pair of string but neither of them is a key. Like this. {code:java|borderStyle=solid} List<Pair<String,String>> fileSpecs = new ArrayList<>(); int i = 0; // Next, go through include/exclude filespecs i = 0; while (i < ds.getChildCount()) { SpecificationNode sn = ds.getChild(i++); if (sn.getType().equals("include") || sn.getType().equals("exclude")) { fileSpecs.add(new Pair<>(sn.getType(),sn.getAttributeValue("filespec"))); } } velocityContext.put("FILESPECS",fileSpecs); {code} _Update_ Apache Commons Lang library has Pair<L,R> class starting from version 3.0 and we are using 2.6. Is it possible to update this library. was (Author: kishorekumar): Hi [~kwri...@metacarta.com] Do we have a Pair<K,V> class or similar used in Manifold. I want to store a pair of string but neither of them is a key. Like this. {code:java|borderStyle=solid} List<Pair<String,String>> fileSpecs = new ArrayList<>(); int i = 0; // Next, go through include/exclude filespecs i = 0; while (i < ds.getChildCount()) { SpecificationNode sn = ds.getChild(i++); if (sn.getType().equals("include") || sn.getType().equals("exclude")) { fileSpecs.add(new Pair<>(sn.getType(),sn.getAttributeValue("filespec"))); } } velocityContext.put("FILESPECS",fileSpecs); {code} > Update Livelink Connector HTML String to Velocity Template > ---------------------------------------------------------- > > Key: CONNECTORS-1160 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1160 > Project: ManifoldCF > Issue Type: Improvement > Components: LiveLink connector > Affects Versions: ManifoldCF 2.0.1 > Reporter: Kishore Kumar > Assignee: Karl Wright > Priority: Minor > Labels: connector, patch, velocity > Fix For: ManifoldCF 1.9, ManifoldCF 2.1 > > Attachments: CONNECTORS-1160.patch > > Original Estimate: 672h > Remaining Estimate: 672h > > Hi [~kwri...@metacarta.com] > I would like to contribute to Livelink connector by replacing all stringified > html into velocity templates, if you think that is possible. -- This message was sent by Atlassian JIRA (v6.3.4#6332)