public abstract class StringFilter extends SingleValueAttributeFilter
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ConnectorObject obj)
Determines whether the specified
ConnectorObject
matches this filter. |
boolean |
accept(EmbeddedObject obj)
Determines whether the specified
EmbeddedObject
matches this filter. |
abstract boolean |
accept(java.lang.String value) |
java.lang.String |
getValue()
Get the string value from the afore mentioned attribute.
|
getAttribute, getName, isPresent
public java.lang.String getValue()
getValue
in class SingleValueAttributeFilter
SingleValueAttributeFilter.getValue()
public boolean accept(ConnectorObject obj)
Filter
ConnectorObject
matches this filter.obj
- - The specified ConnectorObject
.true
if the object matches
(that is, satisfies all selection criteria of) this filter;
otherwise false
.java.lang.ClassCastException
- iff the value from the ConnectorObject
's attribute
of the same name as provided is not a string.Filter.accept(ConnectorObject)
public boolean accept(EmbeddedObject obj)
Filter
EmbeddedObject
matches this filter.obj
- - The specified EmbeddedObject
.true
if the object matches
(that is, satisfies all selection criteria of) this filter;
otherwise false
.public abstract boolean accept(java.lang.String value)