}
// ### Too much code duplication here with OR and NOT
+ @Override
byte[] opType1() {
byte[] op = new byte[5];
putTag(CONTEXT, 46, CONSTRUCTED, op, 0); // Operator
this.ms = ms;
}
+ @Override
public String toXCQL(int level, List<CQLPrefix> prefixes,
List<ModifierSet> sortkeys) {
return (indent(level) + "<triple>\n" +
indent(level) + "</triple>\n");
}
+ @Override
public String toCQL() {
// ### We don't always need parens around the operands
return ("(" + left.toCQL() + ")" +
"(" + right.toCQL() + ")");
}
+ @Override
public String toPQF(Properties config) throws PQFTranslationException {
return ("@" + opPQF() +
" " + left.toPQF(config) +
// represents the operation for PQF: overridden for CQLProxNode
String opPQF() { return ms.getBase(); }
+ @Override
public byte[] toType1BER(Properties config) throws PQFTranslationException {
System.out.println("in CQLBooleanNode.toType1BER(): PQF=" +
toPQF(config));
saved_sval = sval;
}
+ @Override
public int nextToken() throws java.io.IOException {
if (saved_ttype != TT_UNDEFINED) {
ttype = saved_ttype;
super(left, right, ms);
}
+ @Override
byte[] opType1() {
byte[] op = new byte[5];
putTag(CONTEXT, 46, CONSTRUCTED, op, 0); // Operator
super(left, right, ms);
}
+ @Override
byte[] opType1() {
byte[] op = new byte[5];
putTag(CONTEXT, 46, CONSTRUCTED, op, 0); // Operator
this.subtree = subtree;
}
+ @Override
public String toXCQL(int level, List<CQLPrefix> prefixes,
List<ModifierSet> sortkeys) {
List<CQLPrefix> tmp = (prefixes == null ?
return subtree.toXCQL(level, tmp, sortkeys);
}
+ @Override
public String toCQL() {
// ### We don't always need parens around the subtree
if (prefix.name == null) {
}
}
+ @Override
public String toPQF(Properties config) throws PQFTranslationException {
// Prefixes and their identifiers don't actually play any role
// in PQF translation, since the meanings of the indexes,
return subtree.toPQF(config);
}
+ @Override
public byte[] toType1BER(Properties config) throws PQFTranslationException {
// See comment on toPQF()
return subtree.toType1BER(config);
* which-code ::= 'known' | 'private' | integer.
* unit-code ::= integer.
*/
+ @Override
String opPQF() {
int relCode = getRelCode();
int unitCode = getProxUnitCode();
}
+ @Override
byte[] opType1() {
byte[] op = new byte[100];
int offset, value;
return ms.getModifiers();
}
+ @Override
public String toXCQL(int level, List<CQLPrefix> prefixes,
List<ModifierSet> sortkeys) {
if (sortkeys != null)
return ms.toXCQL(level, "relation");
}
+ @Override
public String toCQL() {
return ms.toCQL();
}
+ @Override
public String toPQF(Properties config) throws PQFTranslationException {
throw new Error("CQLRelation.toPQF() can never be called");
}
+ @Override
public byte[] toType1BER(Properties config) {
throw new Error("CQLRelation.toType1BER() can never be called");
}
return keys;
}
+ @Override
public String toXCQL(int level, List<CQLPrefix> prefixes,
List<ModifierSet> sortkeys) {
if (sortkeys != null)
return subtree.toXCQL(level, prefixes, keys);
}
+ @Override
public String toCQL() {
StringBuffer buf = new StringBuffer(subtree.toCQL());
return buf.toString();
}
+ @Override
public String toPQF(Properties config) throws PQFTranslationException {
return "@attr 1=oops \"###\"";
}
+ @Override
public byte[] toType1BER(Properties config)
throws PQFTranslationException {
// There is no way to represent sorting in a standard Z39.50
return null;
}
+ @Override
public String toXCQL(int level, List<CQLPrefix> prefixes,
List<ModifierSet> sortkeys) {
return (indent(level) + "<searchClause>\n" +
indent(level) + "</searchClause>\n");
}
+ @Override
public String toCQL() {
String quotedIndex = maybeQuote(index);
String quotedTerm = maybeQuote(term);
return attrs;
}
+ @Override
public String toPQF(Properties config) throws PQFTranslationException {
if (isResultSetIndex(index)) {
// Special case: ignore relation, modifiers, wildcards, etc.
return str;
}
+ @Override
public byte[] toType1BER(Properties config) throws PQFTranslationException {
if (isResultSetIndex(index)) {
// Special case: ignore relation, modifiers, wildcards, etc.