Record Class ShapefileWriteOptions
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.shapefile.core.ShapefileWriteOptions
public record ShapefileWriteOptions(Charset dbfCharset, Optional<String> prjWkt, ShapefileWriteOptions.OverflowPolicy overflow)
extends Record
Low-level write behaviour for
ShapefileDatasetWriter: the .dbf character encoding,
an optional .prj WKT string and the policy for values that do not fit into a DBF field.
This is a format-only options object and does not know about INTERLIS, IOX or the mapping
layer. The richer, user-facing option parsing lives in ShapefileOptions (reader/writer
adapter level) and is not part of the Phase 7 core.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPolicy applied when an attribute value does not fit into the target DBF field width. -
Constructor Summary
ConstructorsConstructorDescriptionShapefileWriteOptions(Charset dbfCharset, Optional<String> prjWkt, ShapefileWriteOptions.OverflowPolicy overflow) Creates an instance of aShapefileWriteOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedbfCharsetrecord component.static ShapefileWriteOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.overflow()Returns the value of theoverflowrecord component.prjWkt()Returns the value of theprjWktrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShapefileWriteOptions
public ShapefileWriteOptions(Charset dbfCharset, Optional<String> prjWkt, ShapefileWriteOptions.OverflowPolicy overflow) Creates an instance of aShapefileWriteOptionsrecord class.- Parameters:
dbfCharset- the value for thedbfCharsetrecord componentprjWkt- the value for theprjWktrecord componentoverflow- the value for theoverflowrecord component
-
-
Method Details
-
defaults
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
dbfCharset
Returns the value of thedbfCharsetrecord component.- Returns:
- the value of the
dbfCharsetrecord component
-
prjWkt
Returns the value of theprjWktrecord component.- Returns:
- the value of the
prjWktrecord component
-
overflow
Returns the value of theoverflowrecord component.- Returns:
- the value of the
overflowrecord component
-