public abstract class IlvSplitFeatureFilter extends IlvHierarchicalDataSource.SingleAttributeFilter
IlvSplitDataSource
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected String |
reference
Reference value.
|
static int |
RESULT_BOTH
Result type indicating that all features should be kept.
|
static int |
RESULT_NOK
Result type indicating that only the features not matching the filter should be kept.
|
static int |
RESULT_OK
Result type indicating that only the features matching the filter should be kept.
|
protected int |
resultType
Type of result: keep matching, non matching or both.
|
Constructor and Description |
---|
IlvSplitFeatureFilter(IlvInputStream stream)
Creates a new
IlvSplitFeatureFilter . |
IlvSplitFeatureFilter(String propertyName,
String description,
String ref,
int resultType)
Creates a new
IlvSplitFeatureFilter . |
Modifier and Type | Method and Description |
---|---|
static Locale |
getLocale()
Returns the locale used to call
String.toLowerCase(Locale) before comparing string values. |
Object |
getValue(IlvMapFeature feature)
Returns a value for the specified map feature.
|
static void |
setLocale(Locale locale)
Changes the locale used to call
String.toLowerCase(Locale) when comparing string values. |
void |
write(IlvOutputStream stream)
Writes this filter to an
IlvOutputStream |
getAttributeDescription, getAttributeName, getCriterionDescription, setAttributeDescription, setAttributeName
public static final int RESULT_OK
public static final int RESULT_NOK
public static final int RESULT_BOTH
protected final String reference
protected final int resultType
public IlvSplitFeatureFilter(IlvInputStream stream) throws IlvReadFileException
IlvSplitFeatureFilter
.stream
- The stream to read the filter definition from.IlvReadFileException
- if fields are missingpublic IlvSplitFeatureFilter(String propertyName, String description, String ref, int resultType)
IlvSplitFeatureFilter
.propertyName
- The property name to check.description
- The description of the filter (unused).ref
- The reference value.resultType
- The type of the resulting layers. The result type should be one of:
public Object getValue(IlvMapFeature feature)
Null
.getValue
in class IlvHierarchicalDataSource.SingleAttributeFilter
feature
- The specified map feature.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
write
in interface IlvPersistentObject
write
in class IlvHierarchicalDataSource.SingleAttributeFilter
stream
- The stream to write to.IOException
- thrown when an exception occurs during
the write operation for this object.public static Locale getLocale()
String.toLowerCase(Locale)
before comparing string values.IlvLocaleUtil.getCurrentLocale()
public static void setLocale(Locale locale)
String.toLowerCase(Locale)
when comparing string values.locale
- The new locale.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.