public class IlvDBFAttributeInfo extends Object
.dbf
files.
Records in a .dbf
file are described by the following
information:
IlvAttributeInfoProperty
associated to the attributes to write.
The size of each field can be set. The default sizes corresponding to the
attributes of each fields are:
IlvDBFWriter
Constructor and Description |
---|
IlvDBFAttributeInfo(IlvAttributeInfoProperty info)
Constructs a new
IlvDBFAttributeInfo . |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getAttributeClass(int i)
Returns the attribute class of the i-th attribute.
|
IlvAttributeInfoProperty |
getAttributeInfoProperty()
Returns the attribute info property used at construct time.
|
String |
getAttributeName(int i)
Returns the name of the i-th attribute.
|
int |
getAttributesCount()
Returns the number of attributes (or fields) of one record.
|
int |
getAttributeSize(int i)
Returns the size of the i-th attribute.
|
void |
setAttributeSize(int index,
int size)
Sets the size for the field whose index is specified.
|
void |
setAttributeSize(String name,
int size)
Sets the size for the field whose name is specified.
|
public IlvDBFAttributeInfo(IlvAttributeInfoProperty info)
IlvDBFAttributeInfo
.info
- The attribute info that describes the records.public IlvAttributeInfoProperty getAttributeInfoProperty()
public int getAttributesCount()
public String getAttributeName(int i)
i
- The index of the name to retrieve.public Class<?> getAttributeClass(int i)
i
- The index of the class to retrieve.public int getAttributeSize(int i)
i
- The index of the size to retrieve.public void setAttributeSize(String name, int size)
name
- The name of the field.size
- The new size. This size cannot exceed 255.public void setAttributeSize(int index, int size)
index
- The index of the field.size
- The new size. This size cannot exceed 255.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.