|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.impexp.ImpFormatRow
public final class ImpFormatRow
Import Format Row with pasing capability
| Field Summary | |
|---|---|
static String |
DATATYPE_Constant
Constant Data type |
static String |
DATATYPE_Date
Data Data type |
static String |
DATATYPE_Number
Numeric Data type |
static String |
DATATYPE_String
String Data type |
| Constructor Summary | |
|---|---|
ImpFormatRow(int seqNo,
String columnName,
int startNo,
int endNo,
String dataType,
int maxLength)
Constructor for fixed format |
|
ImpFormatRow(int seqNo,
String columnName,
String dataType,
int maxLength)
Constructor for non-fixed format |
|
| Method Summary | |
|---|---|
String |
getColumnName()
Get Column Name |
String |
getConstantValue()
Get the constant value |
String |
getDataFormat()
Get Format |
String |
getDataType()
Data Type |
String |
getDecimalPoint()
Get Decimal Point |
int |
getEndNo()
Get End Position |
int |
getSeqNo()
Sequence No |
int |
getStartNo()
Get Start Position |
boolean |
isConstant()
Is Constant |
boolean |
isDate()
Is Date |
boolean |
isDivideBy100()
Divide result by 100 |
boolean |
isNumber()
Is Number |
boolean |
isString()
Is String |
String |
parse(String info)
Parse value. |
void |
setColumnName(String columnName)
Column |
void |
setDataType(String dataType)
Data Type |
void |
setEndNo(int newEndNo)
End Position |
void |
setFormatInfo(String dataFormat,
String decimalPoint,
boolean divideBy100,
String constantValue,
String callout)
Set Format Info |
void |
setMaxLength(int maxLength)
Set maximum length for Strings (truncated). |
void |
setSeqNo(int newSeqNo)
Set Sequence No |
void |
setStartNo(int newStartNo)
Start Position |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DATATYPE_String
public static final String DATATYPE_Date
public static final String DATATYPE_Number
public static final String DATATYPE_Constant
| Constructor Detail |
|---|
public ImpFormatRow(int seqNo,
String columnName,
int startNo,
int endNo,
String dataType,
int maxLength)
seqNo - sequencecolumnName - db dolumn namestartNo - start noendNo - and nodataType - data type - see constants DATATYPE_maxLength - if String it is the maximum length (truncated)
public ImpFormatRow(int seqNo,
String columnName,
String dataType,
int maxLength)
seqNo - sequencecolumnName - db column namedataType - data type - see constants DATATYPE_maxLength - if String it is the maximum length (truncated)| Method Detail |
|---|
public int getSeqNo()
public void setSeqNo(int newSeqNo)
newSeqNo - sequencepublic void setStartNo(int newStartNo)
newStartNo - start positionpublic int getStartNo()
public void setEndNo(int newEndNo)
newEndNo - end positionpublic int getEndNo()
public void setColumnName(String columnName)
columnName - column namepublic String getColumnName()
public void setDataType(String dataType)
dataType - data type - see constants DATATYPE_public String getDataType()
public boolean isString()
public boolean isNumber()
public boolean isDate()
public boolean isConstant()
public void setFormatInfo(String dataFormat,
String decimalPoint,
boolean divideBy100,
String constantValue,
String callout)
dataFormat - data format - see constants DATATYPE_decimalPoint - decimal point representationdivideBy100 - divide number by 100constantValue - constant valuecallout - Java calloutpublic String getDataFormat()
public String getDecimalPoint()
public boolean isDivideBy100()
public String getConstantValue()
public void setMaxLength(int maxLength)
maxLength - max lengthpublic String parse(String info)
info - data item
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||