Package org.apache.ofbiz.datafile
Class ModelDataFile
- java.lang.Object
-
- org.apache.ofbiz.datafile.ModelDataFile
-
public class ModelDataFile extends java.lang.Object
ModelDataFile
-
-
Field Summary
Fields Modifier and Type Field Description char
delimiter
The delimiter used in the file, if delimiter separated fields are usedjava.lang.String
description
A free form description of the filejava.lang.String
name
The name of the Filejava.lang.String
receiver
The entity that generally receives the fileint
recordLength
The length in bytes of a single record, ONLY if it uses fixed length recordsjava.util.List<ModelRecord>
records
List of record definitions for the filejava.lang.String
sender
The entity that generally sends the filestatic java.lang.String
SEP_DELIMITED
static java.lang.String
SEP_FIXED_LENGTH
static java.lang.String
SEP_FIXED_RECORD
java.lang.String
separatorStyle
The field serparator style, either fixed-length, or delimitedint
startLine
Start the file read at linejava.lang.String
textDelimiter
The text delimiter, like quots, used in the file, if delimiter separated fields are usedjava.lang.String
typeCode
The type code of the File, ususally contained somewhere in the file and can be used to identify it
-
Constructor Summary
Constructors Constructor Description ModelDataFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
getDelimiter()
java.lang.String
getDescription()
java.lang.String
getEOLType()
ModelRecord
getModelRecord(java.lang.String recordName)
java.lang.String
getName()
java.lang.String
getReceiver()
int
getRecordLength()
java.util.List<ModelRecord>
getRecords()
java.lang.String
getSender()
java.lang.String
getSeparatorStyle()
int
getStartLine()
java.lang.String
getTypeCode()
void
setDelimiter(char delimiter)
void
setDescription(java.lang.String description)
void
setEOLType(java.lang.String eolType)
void
setName(java.lang.String name)
void
setReceiver(java.lang.String receiver)
void
setRecordLength(int recordLength)
void
setRecords(java.util.List<ModelRecord> records)
void
setSender(java.lang.String sender)
void
setSeparatorStyle(java.lang.String separatorStyle)
void
setStartLine(int startLine)
void
setTypeCode(java.lang.String typeCode)
-
-
-
Field Detail
-
SEP_FIXED_LENGTH
public static final java.lang.String SEP_FIXED_LENGTH
- See Also:
- Constant Field Values
-
SEP_FIXED_RECORD
public static final java.lang.String SEP_FIXED_RECORD
- See Also:
- Constant Field Values
-
SEP_DELIMITED
public static final java.lang.String SEP_DELIMITED
- See Also:
- Constant Field Values
-
name
public java.lang.String name
The name of the File
-
typeCode
public java.lang.String typeCode
The type code of the File, ususally contained somewhere in the file and can be used to identify it
-
sender
public java.lang.String sender
The entity that generally sends the file
-
receiver
public java.lang.String receiver
The entity that generally receives the file
-
recordLength
public int recordLength
The length in bytes of a single record, ONLY if it uses fixed length records
-
startLine
public int startLine
Start the file read at line
-
delimiter
public char delimiter
The delimiter used in the file, if delimiter separated fields are used
-
textDelimiter
public java.lang.String textDelimiter
The text delimiter, like quots, used in the file, if delimiter separated fields are used
-
separatorStyle
public java.lang.String separatorStyle
The field serparator style, either fixed-length, or delimited
-
description
public java.lang.String description
A free form description of the file
-
records
public java.util.List<ModelRecord> records
List of record definitions for the file
-
-
Method Detail
-
getModelRecord
public ModelRecord getModelRecord(java.lang.String recordName)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getTypeCode
public java.lang.String getTypeCode()
-
setTypeCode
public void setTypeCode(java.lang.String typeCode)
-
getSender
public java.lang.String getSender()
-
setSender
public void setSender(java.lang.String sender)
-
getReceiver
public java.lang.String getReceiver()
-
setReceiver
public void setReceiver(java.lang.String receiver)
-
getRecordLength
public int getRecordLength()
-
setRecordLength
public void setRecordLength(int recordLength)
-
getDelimiter
public char getDelimiter()
-
setDelimiter
public void setDelimiter(char delimiter)
-
getStartLine
public int getStartLine()
-
setStartLine
public void setStartLine(int startLine)
-
getSeparatorStyle
public java.lang.String getSeparatorStyle()
-
setSeparatorStyle
public void setSeparatorStyle(java.lang.String separatorStyle)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getEOLType
public java.lang.String getEOLType()
-
setEOLType
public void setEOLType(java.lang.String eolType)
-
getRecords
public java.util.List<ModelRecord> getRecords()
-
setRecords
public void setRecords(java.util.List<ModelRecord> records)
-
-