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 TypeMethodDescriptionintCompares the value of this AiShapeFieldDescriptor to the value of argument object if the argument object is a AiShapeFieldDescriptor.booleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intchargetType()booleanisUnique()booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.toString()voidwriteBytes(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:
compareToin interfaceComparable
-
getType
public char getType() -
isUnique
public boolean isUnique() -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin 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
-