|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gdal.ogr.FieldDefn
public class FieldDefn
Definition of an attribute of a FeatureDefn.
The FieldDefn class is a binding for the C++ OGRFieldDefn class.
Constructor Summary | |
---|---|
FieldDefn()
Constructor. |
|
FieldDefn(String name)
Constructor. |
|
FieldDefn(String name,
int field_type)
Constructor. |
Method Summary | |
---|---|
void |
delete()
|
boolean |
equals(Object obj)
|
int |
GetFieldType()
Return the field type |
String |
GetFieldTypeName(int type)
Fetch human readable name for a field type. |
int |
GetJustify()
Get the justification for this field. |
String |
GetName()
Fetch name of this field. |
String |
GetNameRef()
Fetch name of this field. |
int |
GetPrecision()
Get the formatting precision for this field. |
String |
GetTypeName()
Fetch human readable name for the field |
int |
GetWidth()
Get the formatting width for this field. |
int |
hashCode()
|
void |
SetJustify(int justify)
Set the justification for this field. |
void |
SetName(String name)
Reset the name of this field. |
void |
SetPrecision(int precision)
Set the formatting precision for this field in characters. |
void |
SetType(int type)
Set the type of this field. |
void |
SetWidth(int width)
Set the formatting width for this field in characters. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldDefn(String name, int field_type)
name
- the name of the new field.field_type
- the type of the new field.public FieldDefn(String name)
name
- the name of the new field.public FieldDefn()
Method Detail |
---|
public void delete()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String GetName()
public String GetNameRef()
public void SetName(String name)
name
- the new name to apply.public int GetFieldType()
public void SetType(int type)
type
- the new field type.public int GetJustify()
public void SetJustify(int justify)
justify
- the new justification.public int GetWidth()
public void SetWidth(int width)
width
- the new width.public int GetPrecision()
public void SetPrecision(int precision)
precision
- the new precision.public String GetTypeName()
public String GetFieldTypeName(int type)
type
- the field type to get name for.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |