sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jso...@apache.org
Subject [sis] branch geoapi-4.0 updated: Feature : add several comparison operators
Date Tue, 05 Feb 2019 16:16:44 GMT
This is an automated email from the ASF dual-hosted git repository.

jsorel pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git


The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
     new 46a0377  Feature : add several comparison operators
46a0377 is described below

commit 46a037740ef7aa3e9294ab9238472cfa2fc55751
Author: jsorel <johann.sorel@geomatys.com>
AuthorDate: Tue Feb 5 18:15:47 2019 +0100

    Feature : add several comparison operators
---
 .../filter/AbstractBinaryComparisonOperator.java   | 219 +++++++++++++++++++++
 .../apache/sis/filter/DefaultFilterFactory.java    |  10 +-
 .../sis/filter/DefaultPropertyIsGreaterThan.java   |  64 ++++++
 .../DefaultPropertyIsGreaterThanOrEqualTo.java     |  64 ++++++
 .../sis/filter/DefaultPropertyIsLessThan.java      |  64 ++++++
 .../filter/DefaultPropertyIsLessThanOrEqualTo.java |  64 ++++++
 .../apache/sis/filter/DefaultPropertyIsLike.java   |  93 +++++++++
 7 files changed, 573 insertions(+), 5 deletions(-)

diff --git a/core/sis-feature/src/main/java/org/apache/sis/filter/AbstractBinaryComparisonOperator.java
b/core/sis-feature/src/main/java/org/apache/sis/filter/AbstractBinaryComparisonOperator.java
new file mode 100644
index 0000000..fd1e664
--- /dev/null
+++ b/core/sis-feature/src/main/java/org/apache/sis/filter/AbstractBinaryComparisonOperator.java
@@ -0,0 +1,219 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.filter;
+
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Calendar;
+import java.util.Collection;
+import java.util.Date;
+import org.apache.sis.util.ArgumentChecks;
+import org.apache.sis.util.ObjectConverters;
+import org.opengis.filter.BinaryComparisonOperator;
+import org.opengis.filter.MatchAction;
+import org.opengis.filter.expression.Expression;
+
+/**
+ * Immutable abstract "binary comparison operator".
+ *
+ * @author Johann Sorel (Geomatys)
+ * @version 1.0
+ * @since   1.0
+ * @module
+ */
+abstract class AbstractBinaryComparisonOperator extends AbstractBinaryOperator implements
BinaryComparisonOperator,Serializable{
+
+    protected final boolean match;
+    protected final MatchAction matchAction;
+
+    public AbstractBinaryComparisonOperator(final Expression left, final Expression right,
final boolean match, final MatchAction matchAction) {
+        super(left, right);
+        this.match = match;
+        this.matchAction = matchAction;
+        ArgumentChecks.ensureNonNull("matchAction", matchAction);
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public boolean isMatchingCase() {
+        return match;
+    }
+
+    @Override
+    public MatchAction getMatchAction() {
+        return matchAction;
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public final boolean evaluate(final Object candidate) {
+        final Object objleft = expression1.evaluate(candidate);
+        final Object objright = expression2.evaluate(candidate);
+
+        if (objleft instanceof Collection && objright instanceof Collection) {
+            return evaluateOne(objleft, objright);
+        } else if (objleft instanceof Collection) {
+            final Collection col = (Collection) objleft;
+            if (col.isEmpty()) return false;
+            switch (matchAction) {
+                case ALL:
+                    for (Object o : col) {
+                        if (!evaluateOne(o, objright)) return false;
+                    }
+                    return true;
+                case ANY:
+                    for (Object o : col) {
+                        if (evaluateOne(o, objright)) return true;
+                    }
+                    return false;
+                case ONE:
+                    boolean found = false;
+                    for (Object o : col) {
+                        if (evaluateOne(o, objright)) {
+                            if (found) return false;
+                            found = true;
+                        }
+                    }
+                    return found;
+                default: return false;
+            }
+        } else if (objright instanceof Collection) {
+            final Collection col = (Collection) objright;
+            if (col.isEmpty()) return false;
+            switch (matchAction) {
+                case ALL:
+                    for (Object o : col) {
+                        if (!evaluateOne(objleft,o)) return false;
+                    }
+                    return true;
+                case ANY:
+                    for (Object o : col) {
+                        if (evaluateOne(objleft,o)) return true;
+                    }
+                    return false;
+                case ONE:
+                    boolean found = false;
+                    for (Object o : col) {
+                        if (evaluateOne(objleft,o)) {
+                            if (found) return false;
+                            found = true;
+                        }
+                    }
+                    return found;
+                default: return false;
+            }
+        } else {
+            return evaluateOne(objleft, objright);
+        }
+    }
+
+    protected abstract boolean evaluateOne(Object objleft,Object objright);
+
+    protected Integer compare(Object objleft, Object objright){
+
+        if (!(objleft instanceof Comparable)) {
+            return null;
+        }
+
+        //see if the right type might be more appropriate for test
+        if ( !(objleft instanceof Date) ){
+
+            if (objright instanceof Date) {
+                //object right class is more appropriate
+
+                Object cdLeft = ObjectConverters.convert(objleft, Date.class);
+                if (cdLeft != null) {
+                    return ((Comparable) cdLeft).compareTo(objright);
+                }
+
+            }
+
+        }
+
+        objright = ObjectConverters.convert(objright, objleft.getClass());
+
+        if (objleft instanceof java.sql.Date && objright instanceof java.sql.Date)
{
+            final Calendar cal1 = Calendar.getInstance();
+            cal1.setTime((java.sql.Date) objleft);
+            cal1.set(Calendar.HOUR_OF_DAY, 0);
+            cal1.set(Calendar.MINUTE, 0);
+            cal1.set(Calendar.SECOND, 0);
+            cal1.set(Calendar.MILLISECOND, 0);
+
+            final Calendar cal2 = Calendar.getInstance();
+            cal2.setTime((java.sql.Date) objright);
+            cal2.set(Calendar.HOUR_OF_DAY, 0);
+            cal2.set(Calendar.MINUTE, 0);
+            cal2.set(Calendar.SECOND, 0);
+            cal2.set(Calendar.MILLISECOND, 0);
+
+            return cal1.compareTo(cal2);
+        }
+
+        if (objright == null) {
+            return null;
+        }
+        return ((Comparable) objleft).compareTo(objright);
+    }
+
+
+    @Override
+    public int hashCode() {
+        int hash = 7;
+        hash = 61 * hash + (this.expression1 != null ? this.expression1.hashCode() : 0);
+        hash = 61 * hash + (this.expression2 != null ? this.expression2.hashCode() : 0);
+        hash = 61 * hash + (this.match ? 1 : 0);
+        return hash;
+    }
+
+    @Override
+    public boolean equals(final Object obj) {
+        if (obj == null) {
+            return false;
+        }
+        if (getClass() != obj.getClass()) {
+            return false;
+        }
+        final AbstractBinaryComparisonOperator other = (AbstractBinaryComparisonOperator)
obj;
+        if (this.expression1 != other.expression1 && (this.expression1 == null ||
!this.expression1.equals(other.expression1))) {
+            return false;
+        }
+        if (this.expression2 != other.expression2 && (this.expression2 == null ||
!this.expression2.equals(other.expression2))) {
+            return false;
+        }
+        if (this.match != other.match) {
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public String toString() {
+        final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " (matchcase=");
+        sb.append(match).append(")\n");
+        sb.append(AbstractExpression.toStringTree("",Arrays.asList(expression1,expression2)));
+        return sb.toString();
+    }
+
+}
diff --git a/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultFilterFactory.java
b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultFilterFactory.java
index b9851d5..dc1456b 100644
--- a/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultFilterFactory.java
+++ b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultFilterFactory.java
@@ -441,7 +441,7 @@ public class DefaultFilterFactory implements FilterFactory2 {
     @Override
     public PropertyIsGreaterThan greater(final Expression expr1,
             final Expression expr2, final boolean matchCase, final MatchAction matchAction)
{
-        throw new UnsupportedOperationException("Not supported yet.");
+        return new DefaultPropertyIsGreaterThan(expr1, expr2, matchCase, matchAction);
     }
 
     /**
@@ -459,7 +459,7 @@ public class DefaultFilterFactory implements FilterFactory2 {
     @Override
     public PropertyIsGreaterThanOrEqualTo greaterOrEqual(
             final Expression expr1, final Expression expr2, final boolean matchCase, final
MatchAction matchAction) {
-        throw new UnsupportedOperationException("Not supported yet.");
+        return new DefaultPropertyIsGreaterThanOrEqualTo(expr1, expr2, matchCase, matchAction);
     }
 
     /**
@@ -476,7 +476,7 @@ public class DefaultFilterFactory implements FilterFactory2 {
     @Override
     public PropertyIsLessThan less(final Expression expr1,
             final Expression expr2, final boolean matchCase, MatchAction matchAction) {
-        throw new UnsupportedOperationException("Not supported yet.");
+        return new DefaultPropertyIsLessThan(expr1, expr2, matchCase, matchAction);
     }
 
     /**
@@ -494,7 +494,7 @@ public class DefaultFilterFactory implements FilterFactory2 {
     @Override
     public PropertyIsLessThanOrEqualTo lessOrEqual(final Expression expr1,
             final Expression expr2, final boolean matchCase, final MatchAction matchAction)
{
-        throw new UnsupportedOperationException("Not supported yet.");
+        return new DefaultPropertyIsLessThanOrEqualTo(expr1, expr2, matchCase, matchAction);
     }
 
     /**
@@ -521,7 +521,7 @@ public class DefaultFilterFactory implements FilterFactory2 {
     public PropertyIsLike like(final Expression expr, final String pattern,
             final String wildcard, final String singleChar,
             final String escape, final boolean matchCase) {
-        throw new UnsupportedOperationException("Not supported yet.");
+        return new DefaultPropertyIsLike(expr, pattern, wildcard, singleChar, escape, matchCase);
     }
 
     /**
diff --git a/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsGreaterThan.java
b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsGreaterThan.java
new file mode 100644
index 0000000..d950129
--- /dev/null
+++ b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsGreaterThan.java
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.filter;
+
+import org.opengis.filter.FilterVisitor;
+import org.opengis.filter.MatchAction;
+import org.opengis.filter.PropertyIsGreaterThan;
+import org.opengis.filter.expression.Expression;
+
+/**
+ * Immutable "is greater than" filter.
+ *
+ * @author  Johann Sorel (Geomatys)
+ * @version 1.0
+ * @since   1.0
+ * @module
+ */
+final class DefaultPropertyIsGreaterThan extends AbstractBinaryComparisonOperator implements
PropertyIsGreaterThan {
+    /**
+     * For cross-version compatibility.
+     */
+    private static final long serialVersionUID = -1944045883935206615L;
+
+    public DefaultPropertyIsGreaterThan(final Expression left, final Expression right, final
boolean match, final MatchAction matchAction) {
+        super(left,right,match,matchAction);
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public boolean evaluateOne(Object l, Object r) {
+        final Integer v = compare(l,r);
+        return (v == null) ? false : (v > 0) ;
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public Object accept(final FilterVisitor visitor, final Object extraData) {
+        return visitor.visit(this, extraData);
+    }
+
+    @Override
+    protected char symbol() {
+        return '>';
+    }
+
+}
diff --git a/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsGreaterThanOrEqualTo.java
b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsGreaterThanOrEqualTo.java
new file mode 100644
index 0000000..50d6ed3
--- /dev/null
+++ b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsGreaterThanOrEqualTo.java
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.filter;
+
+import org.opengis.filter.FilterVisitor;
+import org.opengis.filter.MatchAction;
+import org.opengis.filter.PropertyIsGreaterThanOrEqualTo;
+import org.opengis.filter.expression.Expression;
+
+/**
+ * Immutable "is greater than or equal" fitler.
+ *
+ * @author  Johann Sorel (Geomatys)
+ * @version 1.0
+ * @since   1.0
+ * @module
+ */
+final class DefaultPropertyIsGreaterThanOrEqualTo extends AbstractBinaryComparisonOperator
implements PropertyIsGreaterThanOrEqualTo {
+    /**
+     * For cross-version compatibility.
+     */
+    private static final long serialVersionUID = 1723032440128570732L;
+
+    public DefaultPropertyIsGreaterThanOrEqualTo(final Expression left, final Expression
right, final boolean match, final MatchAction matchAction) {
+        super(left,right,match,matchAction);
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public boolean evaluateOne(Object l, Object r) {
+        final Integer v = compare(l,r);
+        return (v == null) ? false : (v >= 0) ;
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public Object accept(final FilterVisitor visitor, final Object extraData) {
+        return visitor.visit(this, extraData);
+    }
+
+    @Override
+    protected char symbol() {
+        return '≥';
+    }
+
+}
diff --git a/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsLessThan.java
b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsLessThan.java
new file mode 100644
index 0000000..44ebb96
--- /dev/null
+++ b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsLessThan.java
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.filter;
+
+import org.opengis.filter.FilterVisitor;
+import org.opengis.filter.MatchAction;
+import org.opengis.filter.PropertyIsLessThan;
+import org.opengis.filter.expression.Expression;
+
+/**
+ * Immutable "is less" filter.
+ *
+ * @author  Johann Sorel (Geomatys)
+ * @version 1.0
+ * @since   1.0
+ * @module
+ */
+final class DefaultPropertyIsLessThan extends AbstractBinaryComparisonOperator implements
PropertyIsLessThan {
+    /**
+     * For cross-version compatibility.
+     */
+    private static final long serialVersionUID = -4576447434041801535L;
+
+    public DefaultPropertyIsLessThan(final Expression left, final Expression right, final
boolean match, final MatchAction matchAction) {
+        super(left,right,match,matchAction);
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public boolean evaluateOne(Object l, Object r) {
+        final Integer v = compare(l,r);
+        return (v == null) ? false : (v < 0) ;
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public Object accept(final FilterVisitor visitor, final Object extraData) {
+        return visitor.visit(this, extraData);
+    }
+
+    @Override
+    protected char symbol() {
+        return '<';
+    }
+
+}
diff --git a/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsLessThanOrEqualTo.java
b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsLessThanOrEqualTo.java
new file mode 100644
index 0000000..753ea3f
--- /dev/null
+++ b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsLessThanOrEqualTo.java
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.filter;
+
+import org.opengis.filter.FilterVisitor;
+import org.opengis.filter.MatchAction;
+import org.opengis.filter.PropertyIsLessThanOrEqualTo;
+import org.opengis.filter.expression.Expression;
+
+/**
+ * Immutable "is less or equal" filter.
+ *
+ * @author  Johann Sorel (Geomatys)
+ * @version 1.0
+ * @since   1.0
+ * @module
+ */
+final class DefaultPropertyIsLessThanOrEqualTo extends AbstractBinaryComparisonOperator implements
PropertyIsLessThanOrEqualTo {
+    /**
+     * For cross-version compatibility.
+     */
+    private static final long serialVersionUID = -5046947167513679010L;
+
+    public DefaultPropertyIsLessThanOrEqualTo(final Expression left, final Expression right,
final boolean match, final MatchAction matchAction) {
+        super(left,right,match,matchAction);
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public boolean evaluateOne(Object l, Object r) {
+        final Integer v = compare(l,r);
+        return (v == null) ? false : (v <= 0) ;
+    }
+
+    /**
+     * {@inheritDoc }
+     */
+    @Override
+    public Object accept(final FilterVisitor visitor, final Object extraData) {
+        return visitor.visit(this, extraData);
+    }
+
+    @Override
+    protected char symbol() {
+        return '≤';
+    }
+
+}
diff --git a/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsLike.java
b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsLike.java
new file mode 100644
index 0000000..16e328f
--- /dev/null
+++ b/core/sis-feature/src/main/java/org/apache/sis/filter/DefaultPropertyIsLike.java
@@ -0,0 +1,93 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.filter;
+
+import static org.apache.sis.util.ArgumentChecks.ensureNonNull;
+import org.opengis.filter.FilterVisitor;
+import org.opengis.filter.PropertyIsLike;
+import org.opengis.filter.expression.Expression;
+
+/**
+ * TODO
+ *
+ * @author Johann Sorel (Geomatys)
+ * @version 1.0
+ * @since   1.0
+ * @module
+ */
+public class DefaultPropertyIsLike implements PropertyIsLike {
+
+    private final Expression expression;
+    private final String pattern;
+    private final String wildcardMulti;
+    private final String wildcardSingle;
+    private final String escape;
+    private final boolean matchingCase;
+
+    public DefaultPropertyIsLike(final Expression expression, final String pattern, final
String wildcardMulti,
+            final String wildcardSingle, final String escape, final boolean matchCase) {
+        ensureNonNull("expression", expression);
+
+        this.expression = expression;
+        this.pattern = pattern;
+        this.wildcardMulti = wildcardMulti;
+        this.wildcardSingle = wildcardSingle;
+        this.escape = escape;
+        this.matchingCase = matchCase;
+    }
+
+    @Override
+    public Expression getExpression() {
+        return expression;
+    }
+
+    @Override
+    public String getLiteral() {
+        return pattern;
+    }
+
+    @Override
+    public String getWildCard() {
+        return wildcardMulti;
+    }
+
+    @Override
+    public String getSingleChar() {
+        return wildcardSingle;
+    }
+
+    @Override
+    public String getEscape() {
+        return escape;
+    }
+
+    @Override
+    public boolean isMatchingCase() {
+        return matchingCase;
+    }
+
+    @Override
+    public boolean evaluate(Object object) {
+        throw new UnsupportedOperationException("Not supported yet.");
+    }
+
+    @Override
+    public Object accept(FilterVisitor visitor, Object extraData) {
+        return visitor.visit(this, extraData);
+    }
+
+}


Mime
View raw message