public class CompositeFilter
extends java.lang.Object
Title: Framework Support Library
Description: Defines a composite filter containing a list of simple filters.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Constructor and Description |
---|
CompositeFilter(Filter filter)
Constructs a new filter from the specified simple filter.
|
CompositeFilter(java.lang.String from)
Constructs a new filter from the specified string.
|
CompositeFilter(java.lang.String from,
boolean initStringForm)
Constructs a new filter from the specified string.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getFilters()
Returns a list of simple filters composing the filter.
|
boolean |
hasMetacharacters()
Checks if the filter has metacharacters.
|
boolean |
isSimple()
Checks if the filter contains only one simple filter.
|
java.lang.String |
toString()
Returns a string form of the filter.
|
public CompositeFilter(java.lang.String from) throws FilterFormatException
from
- the string from which a new filter will be constructed.FilterFormatException
- if the specified string has invalid format.public CompositeFilter(java.lang.String from, boolean initStringForm) throws FilterFormatException
from
- the string from which a new filter will be constructed.initStringForm
- checks if an initialization of the filter string form is needed.FilterFormatException
- if the specified string has invalid format.public CompositeFilter(Filter filter)
filter
- the simple filter from which a new filter will be constructed.public java.util.List getFilters()
public boolean hasMetacharacters()
true
if the filter has any metacharacter, false
otherwise.public boolean isSimple()
true
if the filter contains only one simple filter, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.