Package hec.map.aishape
Class Field
java.lang.Object
hec.map.aishape.Field
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,AiShapeConst,Serializable
- hold field attribute values from dbf file
- See Also:
-
Field Summary
Fields inherited from interface hec.map.aishape.AiShapeConst
DEBUG, FILE_CODE, HIGHLIGHT_MODIFIER, QUERY_FLASH_LENGTH, SHAPE_TYPE_ARC, SHAPE_TYPE_MULTI_POINT, SHAPE_TYPE_NULL, SHAPE_TYPE_POINT, SHAPE_TYPE_POINT_M, SHAPE_TYPE_POINT_Z, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYGON_M, SHAPE_TYPE_POLYGON_Z, SHAPE_TYPE_POLYLINE_M, SHAPE_TYPE_POLYLINE_Z, VERSION, XY_QUERY_TOLERANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldParses the string for the hash value.booleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.getName()chargetType()Returns one of the following valuse B - binary C - character W - Unicode D - Date F - Float L - Logical N - Numeric M - memo G - GenearalgetValue()inthashCode()booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.final voidsetType(char type) Sets the type of field that this object represents.toString()
-
Constructor Details
-
Field
public Field() -
Field
-
Field
-
Field
-
-
Method Details
-
getType
public char getType()Returns one of the following valuse B - binary C - character W - Unicode D - Date F - Float L - Logical N - Numeric M - memo G - Genearal -
setType
public final void setType(char type) Sets the type of field that this object represents. Valid value are the following. B - binary C - character W - Unicode D - Date F - Float L - Logical N - Numeric M - memo G - Genearal -
getName
-
getValue
-
serializeString
-
deserializeString
Parses the string for the hash value. The default field type will be set to "character" -
equals
-
hashCode
public int hashCode() -
toString
-
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
-