Package hec.map.aishape
Class AiShapeFieldDescriptor
java.lang.Object
hec.map.aishape.AiShapeFieldDescriptor
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
,Comparable
public class AiShapeFieldDescriptor
extends Object
implements Serializable, Comparable, AsciiSerializable
Class AiShapeFieldDescriptor used to hold data describing a Shape File field
description on the *.dbf file
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAiShapeFieldDescriptor
(byte[] field) AiShapeFieldDescriptor
(String value, char type, int length, int decimal) -
Method Summary
Modifier and TypeMethodDescriptionint
Compares the value of this AiShapeFieldDescriptor to the value of argument object if the argument object is a AiShapeFieldDescriptor.boolean
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.int
char
getType()
boolean
isUnique()
boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.toString()
void
writeBytes
(byte[] bytes)
-
Constructor Details
-
AiShapeFieldDescriptor
public AiShapeFieldDescriptor() -
AiShapeFieldDescriptor
-
AiShapeFieldDescriptor
- Throws:
IOException
-
-
Method Details
-
equals
-
getLength
public int getLength() -
writeBytes
- Throws:
IOException
-
toString
-
compareTo
Compares the value of this AiShapeFieldDescriptor to the value of argument object if the argument object is a AiShapeFieldDescriptor. Otherwise, throws a ClassCastException.- Specified by:
compareTo
in interfaceComparable
-
getType
public char getType() -
isUnique
public boolean isUnique() -
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The java field object representing the member field to be setfobj
- The data to set in that field- Returns:
- returns true if successful
-