-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from zcc39r/cql-java-1
Added support for truncation attribute
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/org/z3950/zing/cql/UnknownTruncationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.z3950.zing.cql; | ||
|
||
/** | ||
* Exception indicating that a truncation was not recognised. When rendering a | ||
* tree out as PQF, each term is classified either as <TT>left</TT>, | ||
* <TT>right</TT>, <TT>left and right</TT> truncated, depending on whether | ||
* it begins and/or ends with the character <TT>*</TT>. Its | ||
* classification is looked up as a <TT>truncation</TT> in the PQF | ||
* configuration. If the truncation is not configured, we throw one of these | ||
* babies. | ||
* | ||
*/ | ||
public class UnknownTruncationException extends PQFTranslationException { | ||
private static final long serialVersionUID = 6971993723734811253L; | ||
|
||
/** | ||
* Creates a new <TT>UnknownTruncationException</TT>. | ||
* | ||
* @param s | ||
* The truncation for which there was no PQF configuration. | ||
*/ | ||
public UnknownTruncationException(String s) { | ||
super(s); | ||
} | ||
} |