net.sf.flatpack.xml
Class XMLRecordElement

java.lang.Object
  extended by net.sf.flatpack.xml.XMLRecordElement

public class XMLRecordElement
extends java.lang.Object

 

Constructor Summary
XMLRecordElement()
           
 
Method Summary
 int getColumnIndex(java.lang.String colName)
          Returns the index of the column name.
 java.util.List getColumns()
           
 int getElementCount()
          Used to determine the mapping the row belongs to.
 int getElementNumber()
           
 int getEndPositition()
           
 java.lang.String getIndicator()
           
 int getStartPosition()
           
 void setColumns(java.util.List columns)
          Deprecated. Please use setColumns(List, PZParser)
 void setColumns(java.util.List columnsToUse, Parser p)
           
 void setElementCount(int elementCount)
          Used to determine the mapping the row belongs to.
 void setElementNumber(int elementNumber)
           
 void setEndPositition(int endPositition)
           
 void setIndicator(java.lang.String indicator)
           
 void setStartPosition(int startPosition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLRecordElement

public XMLRecordElement()
Method Detail

getElementNumber

public int getElementNumber()
Returns:
Returns the elementNumber.

setElementNumber

public void setElementNumber(int elementNumber)
Parameters:
elementNumber - The elementNumber to set.

getEndPositition

public int getEndPositition()
Returns:
Returns the endPostition.

setEndPositition

public void setEndPositition(int endPositition)
Parameters:
endPostition - The endPostition to set.

getIndicator

public java.lang.String getIndicator()
Returns:
Returns the indicator.

setIndicator

public void setIndicator(java.lang.String indicator)
Parameters:
indicator - The indicator to set.

getStartPosition

public int getStartPosition()
Returns:
Returns the startPosition.

setStartPosition

public void setStartPosition(int startPosition)
Parameters:
startPosition - The startPosition to set.

getColumns

public java.util.List getColumns()
Returns:
List Collection of ColumnMetaData objects
See Also:
ColumnMetaData

setColumns

public void setColumns(java.util.List columns)
Deprecated. Please use setColumns(List, PZParser)

Parameters:
columns - The columns to set.

setColumns

public void setColumns(java.util.List columnsToUse,
                       Parser p)
Parameters:
columnsToUse - The columns to set.
p - PZParser being used. Can be null.

getColumnIndex

public int getColumnIndex(java.lang.String colName)
Returns the index of the column name.

Parameters:
colName -
Returns:
-1 if the column name does not exist.

getElementCount

public int getElementCount()
Used to determine the mapping the row belongs to. Will only be evaluated if > 0.

Returns:
the elementCount

setElementCount

public void setElementCount(int elementCount)
Used to determine the mapping the row belongs to. Will only be evaluated if > 0.

Parameters:
elementCount - the elementCount to set