public class FieldDefn
extends java.lang.Object
The FieldDefn class is a binding for the C++ OGRFieldDefn class.
| Constructor and Description |
|---|
FieldDefn()
Constructor.
|
FieldDefn(java.lang.String name)
Constructor.
|
FieldDefn(java.lang.String name,
int field_type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
GetAlternativeName() |
byte[] |
GetAlternativeNameAsByteArray() |
java.lang.String |
GetAlternativeNameRef() |
java.lang.String |
GetComment() |
byte[] |
GetCommentAsByteArray() |
java.lang.String |
GetDefault() |
byte[] |
GetDefaultAsByteArray() |
java.lang.String |
GetDomainName() |
byte[] |
GetDomainNameAsByteArray() |
int |
GetFieldType()
Return the field type
|
java.lang.String |
GetFieldTypeName(int type)
Fetch human readable name for a field type.
|
int |
GetJustify()
Get the justification for this field.
|
java.lang.String |
GetName()
Get the name of this field.
|
byte[] |
GetNameAsByteArray() |
java.lang.String |
GetNameRef()
Fetch name of this field.
|
int |
GetPrecision()
Get the formatting precision for this field.
|
int |
GetSubType() |
int |
GetType() |
java.lang.String |
GetTypeName()
Fetch human readable name for the field
|
int |
GetTZFlag() |
int |
GetWidth()
Get the formatting width for this field.
|
int |
hashCode() |
int |
IsDefaultDriverSpecific() |
int |
IsGenerated() |
int |
IsIgnored()
Return whether this field should be omitted when fetching features.
|
int |
IsNullable() |
int |
IsUnique() |
void |
SetAlternativeName(java.lang.String alternativeName) |
void |
SetComment(java.lang.String comment) |
void |
SetDefault(java.lang.String pszValue) |
void |
SetDomainName(java.lang.String name) |
void |
SetGenerated(int bGenerated) |
void |
SetIgnored(int bIgnored)
Set whether this field should be omitted when fetching features.
|
void |
SetJustify(int justify)
Set the justification for this field.
|
void |
SetName(java.lang.String name)
Reset the name of this field.
|
void |
SetNullable(int bNullable) |
void |
SetPrecision(int precision)
Set the formatting precision for this field in characters.
|
void |
SetSubType(int type) |
void |
SetType(int type)
Set the type of this field.
|
void |
SetTZFlag(int tzflag) |
void |
SetUnique(int bUnique) |
void |
SetWidth(int width)
Set the formatting width for this field in characters.
|
public FieldDefn(java.lang.String name,
int field_type)
name - the name of the new field.field_type - the type of the new field.public FieldDefn(java.lang.String name)
The new field will be of type OFTString
name - the name of the new field.public FieldDefn()
The new field will be named "unnamed" and of type OFTString
public void delete()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String GetName()
public byte[] GetNameAsByteArray()
public java.lang.String GetNameRef()
public void SetName(java.lang.String name)
name - the new name to apply.public java.lang.String GetAlternativeName()
public byte[] GetAlternativeNameAsByteArray()
public java.lang.String GetAlternativeNameRef()
public void SetAlternativeName(java.lang.String alternativeName)
public int GetType()
public void SetType(int type)
This should never be done to an FieldDefn that is already part of an FeatureDefn.
type - the new field type.public int GetFieldType()
public int GetSubType()
public void SetSubType(int 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()
This should normally be zero for fields of types other than OFTReal.
public void SetPrecision(int precision)
This should normally be zero for fields of types other than OFTReal.
precision - the new precision.public int GetTZFlag()
public void SetTZFlag(int tzflag)
public java.lang.String GetTypeName()
public java.lang.String GetFieldTypeName(int type)
type - the field type to get name for.public int IsIgnored()
public void SetIgnored(int bIgnored)
bIgnored - ignore state (1 to ignore, 0 otherwise)public int IsNullable()
public void SetNullable(int bNullable)
public int IsUnique()
public void SetUnique(int bUnique)
public int IsGenerated()
public void SetGenerated(int bGenerated)
public java.lang.String GetDefault()
public byte[] GetDefaultAsByteArray()
public void SetDefault(java.lang.String pszValue)
public int IsDefaultDriverSpecific()
public java.lang.String GetDomainName()
public byte[] GetDomainNameAsByteArray()
public void SetDomainName(java.lang.String name)
public java.lang.String GetComment()
public byte[] GetCommentAsByteArray()
public void SetComment(java.lang.String comment)