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

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended bycom.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)
           
 java.io.File getFile()
           
 java.lang.String getUri()
           
 java.lang.String getVar()
           
 void setFile(java.io.File file)
           
 void setUri(java.lang.String uri)
           
 void setVar(java.lang.String var)
           
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, 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.MissingAttributeException,
                  org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException

getVar

public java.lang.String getVar()

setVar

public void setVar(java.lang.String var)

getFile

public java.io.File getFile()

setFile

public void setFile(java.io.File file)

getUri

public java.lang.String getUri()

setUri

public void setUri(java.lang.String uri)


Copyright © 2002-2005 Atlassian. All Rights Reserved.