|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.format.shapefile.IlvDBFAttributeInfo
public class IlvDBFAttributeInfo
This class describes the records for .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 Summary | |
|---|---|
IlvDBFAttributeInfo(IlvAttributeInfoProperty info)
Constructs a new IlvDBFAttributeInfo. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDBFAttributeInfo(IlvAttributeInfoProperty info)
IlvDBFAttributeInfo.
info - The attribute info that describes the records.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||