com.atlassian.jira.jelly.tag.util
Class CsvTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by com.atlassian.jira.jelly.tag.util.CsvTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class CsvTag
extends org.apache.commons.jelly.TagSupport

A tag to parse a CSV file into a Jelly variable.

Usage:
<jira:csv var="foo" file="c:\temp\bar.csv" />

'foo' will then be a two dimensional array representing the rows and columns in the CSV file.


Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
CsvTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
           
 File getFile()
           
 String getUri()
           
 String getVar()
           
 void setFile(File file)
           
 void setUri(String uri)
           
 void setVar(String var)
           
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvTag

public CsvTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
           throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

getVar

public String getVar()

setVar

public void setVar(String var)

getFile

public File getFile()

setFile

public void setFile(File file)

getUri

public String getUri()

setUri

public void setUri(String uri)


Copyright © 2002-2014 Atlassian. All Rights Reserved.