|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectanl.repast.gis.data.dbf.JDBField
public class JDBField
Title: JDBF
Description: A database field. Its attributes are name, type, length, and decimal count.
Copyright : Copyright (c) 2004
Société : FUCaM-GTM
| Constructor Summary | |
|---|---|
JDBField(java.lang.String s,
char c,
int i,
int j)
Construct a database field with a given name, type, length, and decimal count. |
|
| Method Summary | |
|---|---|
java.lang.String |
format(java.lang.Object obj)
Formats a value to its String representation, based on the fields |
int |
getDecimalCount()
Returns the decimal count of the field. |
int |
getLength()
Returns the length of the field. |
java.lang.String |
getName()
Returns the name of the field. |
char |
getType()
Returns the type of the field. |
java.lang.Object |
parse(java.lang.String s)
Parses a formatted String and returns an object of type, corresponding to this field. |
java.lang.String |
toString()
Returns the String representation of the JDBField. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDBField(java.lang.String s,
char c,
int i,
int j)
throws JDBFException
s - Stringc - chari - intj - int
JDBFException| Method Detail |
|---|
public java.lang.String getName()
public char getType()
public int getLength()
public int getDecimalCount()
public java.lang.String format(java.lang.Object obj)
throws JDBFException
obj - Object
JDBFException
public java.lang.Object parse(java.lang.String s)
throws JDBFException
s - String
JDBFExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||