public static final class ParseFilter.FilterResult extends Object
ParseFilter
's check.
Used to indicate if a resource was filtered and why.
NOT_FILTERED
,
FilterResult(String)
Modifier and Type | Field and Description |
---|---|
static ParseFilter.FilterResult |
FILTERED
Indicates that the resource was filtered, with no specific reason.
|
static ParseFilter.FilterResult |
NOT_FILTERED
Indicates that the resource was not filtered.
|
static ParseFilter.FilterResult |
WANTED
Indicates that the resource is wanted by a custom parser.
|
Constructor and Description |
---|
FilterResult(String reason)
Constructs a
FilterResult with the reason why the resource will not be parsed. |
Modifier and Type | Method and Description |
---|---|
String |
getReason()
Gets the reason why the resource was filtered.
|
boolean |
isFiltered()
Tells whether or not the resource was filtered.
|
public static final ParseFilter.FilterResult NOT_FILTERED
public static final ParseFilter.FilterResult WANTED
public static final ParseFilter.FilterResult FILTERED
public FilterResult(String reason)
FilterResult
with the reason why the resource will not be parsed.reason
- the reason why the resource was filtered.NOT_FILTERED
public boolean isFiltered()
Filtered resources are not parsed.
true
if the resource was filtered, false
otherwise.getReason()
public String getReason()
null
.isFiltered()