From: <do...@us...> - 2017-04-19 08:35:31
|
Revision: 20208 http://sourceforge.net/p/gate/code/20208 Author: domrout Date: 2017-04-19 08:35:28 +0000 (Wed, 19 Apr 2017) Log Message: ----------- Add getters for query parts so we can implement serialisation outside of the same package Modified Paths: -------------- mimir/trunk/mimir-core/src/gate/mimir/search/query/AbstractOverlapQuery.java mimir/trunk/mimir-core/src/gate/mimir/search/query/MinusQuery.java mimir/trunk/mimir-core/src/gate/mimir/search/query/RepeatsQuery.java mimir/trunk/mimir-core/src/gate/mimir/search/query/SequenceQuery.java mimir/trunk/mimir-core/src/gate/mimir/search/query/TermQuery.java Modified: mimir/trunk/mimir-core/src/gate/mimir/search/query/AbstractOverlapQuery.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/query/AbstractOverlapQuery.java 2017-04-18 15:04:37 UTC (rev 20207) +++ mimir/trunk/mimir-core/src/gate/mimir/search/query/AbstractOverlapQuery.java 2017-04-19 08:35:28 UTC (rev 20208) @@ -243,4 +243,11 @@ */ protected QueryNode outerQuery; + public QueryNode getInnerQuery() { + return innerQuery; + } + + public QueryNode getOuterQuery() { + return outerQuery; + } } Modified: mimir/trunk/mimir-core/src/gate/mimir/search/query/MinusQuery.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/query/MinusQuery.java 2017-04-18 15:04:37 UTC (rev 20207) +++ mimir/trunk/mimir-core/src/gate/mimir/search/query/MinusQuery.java 2017-04-19 08:35:28 UTC (rev 20208) @@ -170,4 +170,12 @@ return "MINUS (\nLEFT:" + left.toString() + ",\nRIGHT:" + right.toString() +"\n)"; } + + public QueryNode getLeft() { + return left; + } + + public QueryNode getRight() { + return right; + } } Modified: mimir/trunk/mimir-core/src/gate/mimir/search/query/RepeatsQuery.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/query/RepeatsQuery.java 2017-04-18 15:04:37 UTC (rev 20207) +++ mimir/trunk/mimir-core/src/gate/mimir/search/query/RepeatsQuery.java 2017-04-19 08:35:28 UTC (rev 20208) @@ -334,4 +334,15 @@ max + "])"; } + public int getMin() { + return min; + } + + public int getMax() { + return max; + } + + public QueryNode getWrappedQuery() { + return wrappedQuery; + } } Modified: mimir/trunk/mimir-core/src/gate/mimir/search/query/SequenceQuery.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/query/SequenceQuery.java 2017-04-18 15:04:37 UTC (rev 20207) +++ mimir/trunk/mimir-core/src/gate/mimir/search/query/SequenceQuery.java 2017-04-19 08:35:28 UTC (rev 20208) @@ -81,7 +81,14 @@ else if(end > start + max + 1) return 1; else return 0; } - + + public int getMin() { + return min; + } + + public int getMax() { + return max; + } } public static class SequenceQueryExecutor extends AbstractIntersectionQueryExecutor{ @@ -632,4 +639,8 @@ return str.toString(); } + public Gap[] getGaps() { + return gaps; + } + } Modified: mimir/trunk/mimir-core/src/gate/mimir/search/query/TermQuery.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/query/TermQuery.java 2017-04-18 15:04:37 UTC (rev 20207) +++ mimir/trunk/mimir-core/src/gate/mimir/search/query/TermQuery.java 2017-04-19 08:35:28 UTC (rev 20208) @@ -475,4 +475,11 @@ ":" + term + ")"; } + public IndexType getIndexType() { + return indexType; + } + + public int getLength() { + return length; + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |