org.databene.platform.xls
Class XLSEntityIterator
java.lang.Object
org.databene.platform.xls.XLSEntityIterator
- All Implemented Interfaces:
- java.io.Closeable, org.databene.commons.context.ContextAware, org.databene.webdecs.DataIterator<Entity>
public class XLSEntityIterator
- extends java.lang.Object
- implements org.databene.webdecs.DataIterator<Entity>, org.databene.commons.context.ContextAware
Iterates an Excel sheet and maps its rows to Entity
instances.
Created at 27.01.2009 21:38:31
- Since:
- 0.5.8
- Author:
- Volker Bergmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
formatted
protected boolean formatted
emptyMarker
protected java.lang.String emptyMarker
XLSEntityIterator
public XLSEntityIterator(java.lang.String uri)
throws java.io.IOException
- Throws:
java.io.IOException
XLSEntityIterator
public XLSEntityIterator(java.lang.String uri,
org.databene.commons.Converter<java.lang.String,?> preprocessor,
ComplexTypeDescriptor entityDescriptor,
java.lang.String sheetName,
boolean formatted)
throws java.io.IOException
- Throws:
java.io.IOException
setSheetName
public void setSheetName(java.lang.String sheetName)
setRowBased
public void setRowBased(boolean rowBased)
setContext
public void setContext(org.databene.commons.Context context)
- Specified by:
setContext
in interface org.databene.commons.context.ContextAware
getType
public java.lang.Class<Entity> getType()
- Specified by:
getType
in interface org.databene.webdecs.DataIterator<Entity>
next
public org.databene.webdecs.DataContainer<Entity> next(org.databene.webdecs.DataContainer<Entity> container)
- Specified by:
next
in interface org.databene.webdecs.DataIterator<Entity>
close
public void close()
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in interface org.databene.webdecs.DataIterator<Entity>
parseAll
public static java.util.List<Entity> parseAll(java.lang.String uri,
org.databene.commons.Converter<java.lang.String,?> preprocessor)
throws java.io.IOException
- Throws:
java.io.IOException
parseAll
public static java.util.List<Entity> parseAll(java.lang.String uri,
org.databene.commons.Converter<java.lang.String,?> preprocessor,
java.lang.String sheetName,
boolean formatted)
throws java.io.IOException
- Throws:
java.io.IOException
getUri
public java.lang.String getUri()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
createDescriptor
public ComplexTypeDescriptor createDescriptor(java.lang.String entityTypeName)
Copyright © 2013. All Rights Reserved.