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 Field
Parses the string for the hash value.boolean
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.getName()
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 - GenearalgetValue()
int
hashCode()
boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.final void
setType
(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: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
-