Record Class ShapefileAttributeDescriptor
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.shapefile.ShapefileAttributeDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionShapefileAttributeDescriptor(String iomAttributeName, String dbfFieldName, DbfFieldType dbfType, int length, int decimalCount, ShapeType shapeType, Integer srid, boolean mandatory) Creates an instance of aShapefileAttributeDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedbfFieldNamerecord component.dbfType()Returns the value of thedbfTyperecord component.intReturns the value of thedecimalCountrecord component.final booleanIndicates whether some other object is "equal to" this one.booleangeometry()final inthashCode()Returns a hash code value for this object.Returns the value of theiomAttributeNamerecord component.intlength()Returns the value of thelengthrecord component.booleanReturns the value of themandatoryrecord component.Returns the value of theshapeTyperecord component.srid()Returns the value of thesridrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShapefileAttributeDescriptor
public ShapefileAttributeDescriptor(String iomAttributeName, String dbfFieldName, DbfFieldType dbfType, int length, int decimalCount, ShapeType shapeType, Integer srid, boolean mandatory) Creates an instance of aShapefileAttributeDescriptorrecord class.- Parameters:
iomAttributeName- the value for theiomAttributeNamerecord componentdbfFieldName- the value for thedbfFieldNamerecord componentdbfType- the value for thedbfTyperecord componentlength- the value for thelengthrecord componentdecimalCount- the value for thedecimalCountrecord componentshapeType- the value for theshapeTyperecord componentsrid- the value for thesridrecord componentmandatory- the value for themandatoryrecord component
-
-
Method Details
-
geometry
public boolean geometry() -
toDbfField
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
iomAttributeName
Returns the value of theiomAttributeNamerecord component.- Returns:
- the value of the
iomAttributeNamerecord component
-
dbfFieldName
Returns the value of thedbfFieldNamerecord component.- Returns:
- the value of the
dbfFieldNamerecord component
-
dbfType
Returns the value of thedbfTyperecord component.- Returns:
- the value of the
dbfTyperecord component
-
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
decimalCount
public int decimalCount()Returns the value of thedecimalCountrecord component.- Returns:
- the value of the
decimalCountrecord component
-
shapeType
Returns the value of theshapeTyperecord component.- Returns:
- the value of the
shapeTyperecord component
-
srid
Returns the value of thesridrecord component.- Returns:
- the value of the
sridrecord component
-
mandatory
public boolean mandatory()Returns the value of themandatoryrecord component.- Returns:
- the value of the
mandatoryrecord component
-