public class NullBooleanConverter extends Object implements SimpleFeatureConverter<Boolean>
Constructor and Description |
---|
NullBooleanConverter() |
NullBooleanConverter(String attributeName,
boolean nullIsTrue) |
Modifier and Type | Method and Description |
---|---|
Boolean |
convert(org.opengis.feature.simple.SimpleFeature feature) |
String |
getAttributeName() |
boolean |
getNullIsTrue() |
void |
setAttributeName(String attributeName) |
void |
setNullIsTrue(boolean nullIsTrue) |
public NullBooleanConverter()
public NullBooleanConverter(String attributeName, boolean nullIsTrue)
public Boolean convert(org.opengis.feature.simple.SimpleFeature feature)
convert
in interface SimpleFeatureConverter<Boolean>
public void setAttributeName(String attributeName)
attributeName
- the attribute name to setpublic String getAttributeName()
public void setNullIsTrue(boolean nullIsTrue)
nullIsTrue
- whether a null value for this attribue converts to falsepublic boolean getNullIsTrue()
Copyright © 2018. All rights reserved.