public enum GeoValidationMethod extends java.lang.Enum<GeoValidationMethod> implements Writeable<GeoValidationMethod>
Writeable.Reader<R>
Enum Constant and Description |
---|
COERCE |
IGNORE_MALFORMED |
STRICT |
Modifier and Type | Field and Description |
---|---|
static GeoValidationMethod |
DEFAULT |
static boolean |
DEFAULT_LENIENT_PARSING |
Modifier and Type | Method and Description |
---|---|
static GeoValidationMethod |
fromString(java.lang.String op) |
static GeoValidationMethod |
infer(boolean coerce,
boolean ignoreMalformed)
Returns validation method corresponding to given coerce and ignoreMalformed values.
|
static boolean |
isCoerce(GeoValidationMethod method)
Returns whether or not to try and fix broken/wrapping bounding boxes.
|
static boolean |
isIgnoreMalformed(GeoValidationMethod method)
Returns whether or not to skip bounding box validation.
|
GeoValidationMethod |
readFrom(StreamInput in)
Reads an object of this type from the provided StreamInput.
|
static GeoValidationMethod |
readGeoValidationMethodFrom(StreamInput in) |
static GeoValidationMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GeoValidationMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final GeoValidationMethod COERCE
public static final GeoValidationMethod IGNORE_MALFORMED
public static final GeoValidationMethod STRICT
public static final GeoValidationMethod DEFAULT
public static final boolean DEFAULT_LENIENT_PARSING
public static GeoValidationMethod[] values()
for (GeoValidationMethod c : GeoValidationMethod.values()) System.out.println(c);
public static GeoValidationMethod valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic GeoValidationMethod readFrom(StreamInput in) throws java.io.IOException
StreamableReader
readFrom
in interface StreamableReader<GeoValidationMethod>
readFrom
in interface Writeable<GeoValidationMethod>
java.io.IOException
public static GeoValidationMethod readGeoValidationMethodFrom(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
writeTo
in interface Writeable<GeoValidationMethod>
java.io.IOException
public static GeoValidationMethod fromString(java.lang.String op)
public static boolean isIgnoreMalformed(GeoValidationMethod method)
public static boolean isCoerce(GeoValidationMethod method)
public static GeoValidationMethod infer(boolean coerce, boolean ignoreMalformed)